ImgDeskew
Previous  Top  Next

Prototype

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

Description

It deskew the image.

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 deskewing
angle:=ImgDeskew(_CurrentImage, 5, 0.1, 0, False, False);

//It shows a message 
ApplicationLog(_CurrentAgent,'Deskewing image: '+ FloatToStr(angle) +'°.');