ImageGear for C and C++ on Windows v19.10 - Updated
IG_IC_orient_auto_ex
API Reference Guide > ImageClean Component API Reference > ImageClean Component Functions Reference > IG_IC_orient_auto_ex

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:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
nDocumentType INT

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.