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

This function automatically determines the proper orientation of a 1-bit image and rotates the image to the proper orientation.

Declaration:

 
Copy Code
AT_ERRCOUNT IG_IC_orient_auto ( HIGEAR hIGear);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.

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:

You should call this function after the IG_IP_deskew_auto() function because the de-skew function fixes only the angle of an image, not its orientation.

Refer to the Component Manager API section.