ImgEvaluateOrientation |
Top Previous Next |
Prototype
intAngle:=ImgEvaluateOrientation(intImageHandle)
Description
Evaluates orientation angle for the image.
Parameters
intImageHandle: integer value corresponding to the image handle.
Returned value
Integer value with calculated orientation angle (clockwise): can be 90, 180 or 270
Notes
To evaluate and correct orientation automatically you can use ImgAutoOrient else you can evaluate angle and the rotate the image using ImgRotate. Please note that returned value is the orientation angle and not the angle to be rotate to get well oriented image, so, as example, if the result is 90 then to get correct oriented image you have to make a 270° rotation.
Example
// Find orientation angle Angle:=ImgEvaluateOrientation(_CurrentImage);
// Log a message ApplicationLog('Orientation angle is: '+ IntToStr(Angle) +'°.'); |