Method Common.ColorGetRedChannel
Extracts Red Channel from Integer Argb color structureUsage
Function ZAP.Common.ColorGetRedChannel (
Integer ArgbColor
)
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));
Comment
Make gray (RGB: 128, 128, 128) color and save it's red channel to variable