ImageGear Professional for Windows ActiveX
Deskew Method

Deskew Method

Description:

This method automatically detects the angle of the 1-bit document referenced by pPage, and rotates it so that it is straight. (de-skews it.) If RotationMode is set to IG_ROTATE_EXPAND, the size of image width or height will be enlarged as necessary to accommodate the document when it has been rotated. Otherwise, any areas of the document that now fall outside the borders of the original width and height of the image, will be cropped.

This method processes all image channels, including Alpha channel and Extra channels, if they exist.

Syntax:

      Deskew (ByVal pPage As IGPage, ByVal RotationMode As
enumIGRotationModes)

Parameters:

Name Description
pPage Reference to IGPage Object to de-skew.
RotationMode Either IG_ROTATE_CLIP or IG_ROTATE_EXPAND.

Return Value:

N/A

Bits Per Pixel:

1

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback