Usage
Function ZAP.Common.ColorGetGreenChannel (
Integer ArgbColor,
Boolean Report [Optional]
)
ZAP Utility
ZAP..reenChannel
ZAP.Var..color")
True
greenChannel
Integer ArgbColor
Boolean Report [Optional]
Output Parameter
Parameters
ArgbColor
Type: Integer
Integer Argb color structure
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Green channel data
Example
VBScript
' Make gray (RGB: 128, 128, 128) color and display green channel in message box
color = Zap.Common.ColorMakeFromRGB(128, 128, 128)
msgbox Zap.Common.ColorGetGreenChannel(color, True)
JavaScript
// Make gray (RGB: 128, 128, 128) color and display green channel in message box
var color = Zap.Common.ColorMakeFromRGB(128, 128, 128);
alert(Zap.Common.ColorGetGreenChannel(color, true));
ZAP Utility
Zap...FromRGB
128
128
128
color
ZAP Utility
Zap..reenChannel
Zap.Var.."color")
True
greenChannel

Comment
Make gray (RGB: 128, 128, 128) color and save it's green channel to variable