common, namespace, color, make, from, rgb, scriptless, script-less, scripted, step, view, stepview

Method Zap.Common.ColorMakeFromRGB

Creates a Integer color structure from RGB channels

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Common.ColorMakeFromRGB ( 
	Integer Red,
	Integer Green,
	Integer Blue
)

ZAP Utility

ZAP Utility step

Zap...FromRGB

128

128

128

color

Red

Green

Blue

Output Parameter

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

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...FromRGB

128

128

128

color

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...IntToString

Zap.Var.."color")

strColor

Script-Less next step

Step

ZAP Object step

SetProperty

Text Color

Zap...strColor")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552