Method Common.ColorMakeFromRGB
Creates a Integer color structure from RGB channelsUsage
Function ZAP.Common.ColorMakeFromRGB (
Integer Red,
Integer Green,
Integer Blue
)
Parameters
Red
Type: Integer
Red channel
Green
Type: Integer
Green channel
Blue
Type: Integer
Blue channel
Returns
Integer Argb color structure
Example
VBScript
' Make gray (RGB 128, 128, 128) color and set its value to Text Color property
color = Zap.Common.ColorMakeFromRGB(128, 128, 128)
Application("Demo").View("DemoView").Object("DemoObject").SetProperty "Text Color", Zap.Common.ConvertIntToString(color)
JavaScript
// Make gray (RGB 128, 128, 128) color and set its value to Text Color property
var color = Zap.Common.ColorMakeFromRGB(128, 128, 128);
Application("Demo").View("DemoView").Object("DemoObject").SetProperty("Text Color", Zap.Common.ConvertIntToString(color));
Comment
Make gray (RGB 128, 128, 128) color, convert it to string and set as value to Text Color property