fbpx

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.

Usage

Function GetAverageColorRGB(
        Boolean Report [Optional]
)

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

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo