Prototype
intAngle:=ImgAutoOrient(intImageHandle)
Description
It orient correctly the image, rotating it by 90, 180 or 270° if required.
Parameters
intImageHandle: integer value corresponding to the image handle.
Returned value
intAngle : orientation angle before correction.
Notes
None.
Example
//image auto orientation
Angle:=ImgAutoOrient(_CurrentImage);
//It shows a message
ApplicationLog(_CurrentAgent,'Orientation corrected: '+ IntToStr(Angle) +'°.');