ImgEvaluateBrightness
Previous  Top  Next

Prototype

floatBrightness:=ImgEvaluateBrightness(intImageHandle)

Description

It evaluates image brightness.

Parameters

intImageHandle: integer value corresponding to the image handle.

Returned value

Float value rapresenting the image brightness. It ranges from 0.0 (all black) to 255.0 (all white)

Notes

None.

Example

// Find the image brightness
value:=ImgEvaluateBrightness(_CurrentImage);

//It shows a message 
ApplicationLog(_CurrentAgent,'Image Brightness is: '+ FloatToStr(value));