common, namespace, color, get, red, channel, rgb, scriptless, script-less, scripted, step, view, stepview

Method Zap.Common.ColorGetRedChannel

Extracts Red Channel from Integer Argb color structure

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Common.ColorGetRedChannel ( 
	Integer ArgbColor
)

ZAP Utility

Zap...RedChannel

Zap.Var..color")

redChannel

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

Comment

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

ZAP Utility

Zap...FromRGB

128

128

128

color

ZAP Utility

Zap...RedChannel

Zap.Var.."color")

redChannel

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227