ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > Deskew Method |
Deskew Method
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.
Deskew (ByVal pPage As IGPage, ByVal RotationMode As
enumIGRotationModes)
Name | Description |
---|---|
pPage | Reference to IGPage Object to de-skew. |
RotationMode | Either IG_ROTATE_CLIP or IG_ROTATE_EXPAND. |
N/A
1
Image Processing and Effects