ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IP_deskew_angle_find
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Effects Functions > IG_IP_deskew_angle_find

Glossary Item Box

This function determines the skew angle of a 1-bit document image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_deskew_angle_find (
        HIGEAR hIGear, 
        LPDOUBLE lpAngle
);

Arguments:

hIGear HIGEAR handle of image.
lpAngle Far pointer to a DOUBLE variable that will receive the skew angle.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

Indexed RGB – 1 bpp;
Grayscale – 1 bpp.

Sample:

Image Processing

Example:

  Copy Code
HIGEAR hIGear;  /* HIGEAR handle of image    */
DOUBLE dblDeskewAngle;  /* Amount of skew in lpRect returned  */
AT_ERRCOUNT  nErrcount;  /* will tally any IG errors  */
nErrcount = IG_IP_deskew_angle_find ( hIGear, &dblDeskewAngle );

Remarks:

The angle is returned via the pointer lpAngle. You may then use the value of lpAngle with IG_IP_rotate_any_angle() function in order to straighten the image.

©2012. Accusoft Corporation. All Rights Reserved.