ImageGear for C and C++ on Windows v20.3 - Updated
IG_IC_crop_auto
API Reference Guide > ImageClean Component API Reference > ImageClean Component Functions Reference > IG_IC_crop_auto

This function automatically crops any white borders from a 1-bit image.

Declaration:

 
Copy Code
AT_ERRCOUNT IG_IC_crop_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:

For example, if there is a left margin of 1 inch, where no text is present, this will be cropped away. If the bottom of the page has 3 inches of white space, it will be cropped away. This function automatically determines how much white border exists on all four sides of the image and crops accordingly. The image is not resized.

Refer to the Component Manager API section.

Is this page helpful?
Yes No
Thanks for your feedback.