ImgAutoInvert

Top  Previous  Next

Prototype

 

boolInverted:=ImgAutoInvert(intImageHandle)

 

Description

 

Invert the image (negative) if required.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

Returned value

 

boolInverted : boolean value with evaluation result before inversion: can be TRUE (image was negative) or FALSE  (image was positive)

 

Notes

 

None.

 

Example

 

// Image auto inversion

WasInverted:=ImgAutoInvert(_CurrentImage);

 

// Log a message 

if WasInverted

then ApplicationLog('Negative image was inverted !')

else ApplicationLog('Image was positive !');