Usage
Function ZAP.Common.ColorGetRedChannel (
Integer ArgbColor
)
ZAP Utility
ZAP...RedChannel
ZAP.Var..color")
redChannel
Integer ArgbColor
Output Parameter
Parameters
ArgbColor
Type: Integer
Integer Argb color structure
Returns
Red channel data
Example
VBScript
' Make gray (RGB: 128, 128, 128) color and display red channel in message box
color = Zap.Common.ColorMakeFromRGB(128, 128, 128)
msgbox Zap.Common.ColorGetRedChannel(color)
JavaScript
// Make gray (RGB: 128, 128, 128) color and display red channel in message box
var color = Zap.Common.ColorMakeFromRGB(128, 128, 128);
alert(Zap.Common.ColorGetRedChannel(color));
ZAP Utility
Zap...FromRGB
128
128
128
color
ZAP Utility
Zap...RedChannel
Zap.Var.."color")
redChannel

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