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

Method Zap.Common.ColorGetGreenChannel

Extracts Green 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.ColorGetGreenChannel ( 
	Integer ArgbColor
)

ZAP Utility

Zap..reenChannel

Zap.Var..color")

greenChannel

ArgbColor

Output Parameter

Parameters

ArgbColor

Type: Integer

Integer Argb color structure

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)

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

Comment

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

ZAP Utility

Zap...FromRGB

128

128

128

color

ZAP Utility

Zap..reenChannel

Zap.Var.."color")

greenChannel

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227