fbpx

Method GetAverageColorName

Gets the name of the average color of the object. An average color is calculated by summing color values of all pixels of the object and dividing by the number of pixels

Usage

Function GetAverageColorName(
  Boolean Report [Optional]
)

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Average color String

Example

VBScript

color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName()
'result example: SlateGray

JavaScript

var color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName();
// result example: SlateGray

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo