ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IC_orient_auto_ex
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > ImageClean Component API Reference > ImageClean Component Functions Reference > IG_IC_orient_auto_ex

Glossary Item Box

This function is the enhanced version of IG_IC_orient_auto() function.

Declaration:

  Copy Code
AT_ERRCOUNT IG_IC_orient_auto_ex (
        HIGEAR hIGear,
        INT nDocumentType
);

Arguments:

hIGear HIGEAR handle of image.
nDocumentType

Type of the input document type's alignment. Currently there are three document type's alignment constants:

  • IG_IC_STANDARD_DOC
  • IG_IC_LEFT_ALIGNED_DOC
  • IG_IC_RIGHT_ALIGNED_DOC

Return Value:

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

Supported Raster Image Formats:

Indexed RGB – 1 bpp.

Sample:

ImageClean

Remarks:

This function automatically determines what the proper orientation of a 1-bit image should be and rotates this image to achieve that proper orientation.

If the input document is left (or right) aligned and contains only the text formed in one column then set nDocumentType parameter to IG_IC_LEFT_ALIGNED_DOC (or IG_IC_RIGHT_ALIGNED_DOC accordingly). Otherwise (or if you don't know anything about the loaded document) set nDocumentType to IG_IC_STANDARD_DOC.

Refer to the Component Manager API section.

©2012. Accusoft Corporation. All Rights Reserved.