ImgDeskewSafe
Previous  Top  Next

Prototype

floatAngle:=ImgDeskewSafe(intImageHandle, intRange, floatResolution, intStep, boolIfWhiteBackground, boolIfInterpolation)

Description

It deskew the image as ImgDeskew but avoid to loose info on borders becouse it increases the size of image before rotating.

Parameters

intImageHandle: integer value corresponding to the image handle.
intRange: integer value that specifies the range of deskewing (between -SpecifiedValue and +SpecifiedValue);
floatResolution: resolution used in deskew procedure.
intStep:
rows step in the cycle that reads and analyzes rows of the image (0: Automatic; 1:All the rows)
boolIfWhiteBackground: boolean that specifies if background created by rotation is filled by white or black ink;
boolIfInterpolation:
boolean that specifies if you want to use Interpolation.

Returned value

floatAngle : calculated deskew angle.

Notes

None.

Example

//image safe deskewing
angle:=ImgDeskewSage(_CurrentImage, 5, 0.1, 0, False, False);

//It shows a message in the log 
ApplicationLog(_CurrentAgent,Safe deskewed image: '+ FloatToStr(angle) +'°.');