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 pixelsUsage
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
Comment
Get average color name and save it to variable