ImageGear Professional v18.2 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT IG_IC_crop_auto ( HIGEAR hIGear); |
Name | Type | Description |
hIGear | HIGEAR | HIGEAR handle of image. |
Returns the number of ImageGear errors that occurred during this function call.
Indexed RGB – 1 bpp.
ImageClean
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.