ImgDeskew

Top  Previous  Next

Prototype

 

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

 

Description

 

Deskews 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 loop 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);

 

// Log a message 

ApplicationLog('Deskewing image: '+ FloatToStr(angle) +'°.');