get, average, color, rgb, scriptless, script-less, scripted, step, view, stepview

Method GetAverageColorRGB

Retrieves the average color of an object. An average color is calculated by summing all pixels of the object and dividing by the number of pixels.

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function GetAverageColorRGB(
        Boolean Report [Optional]
)

Step

ZAP Object step

GetAve...RGB

True

rgbColor

Report

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Array of three integers representing RGB values (Red, Green, Blue)

Example

VBScript

rgbColor = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorRGB()

JavaScript

rgbColor = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorRGB();

Step

ZAP Object step

GetAve...RGB

True

rgbColor

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552