ImgEvaluateInversion

Top  Previous  Next

Prototype

 

boolInverted:=ImgEvaluateInversion(intImageHandle)

 

Description

 

Evaluates if an image is inverted (white on black, negative).

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

Returned value

 

Boolean value with evaluation result: can be TRUE (image is inverted) or FALSE  (image is normal)

 

Notes

 

To evaluate and correct inversion automatically you can use ImgAutoInvert else you can evaluate inversion and then invert the image using ImgInvert.

 

Example

 

// Find inversion

IsInverted:=ImgEvaluateInversion(_CurrentImage);

 

// Log a message 

if IsInverted

then ApplicationLog('Image is inverted !')

else ApplicationLog('Image is NOT inverted !')