fbpx

Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Method Common.ColorMakeFromRGB

Creates a Integer color structure from RGB channels

Usage

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));

Documentation Categories

ZAPTEST

FARM

LOAD