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

This function inverts all pixel values of a 1-bit image in which the percentage of black pixels is higher than the value you assign to uPercent_of_black.

Declaration:

 
Copy Code
AT_ERRCOUNT IG_IC_invert_black_image ( 
        HIGEAR hIGear, 
        UINT uPercent_of_black
); 

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
uPercent_of_black UINT Minimum necessary percentage of black pixels on the image to trigger auto-inversion.

Return Value:

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

Supported Raster Image Formats:

Indexed RGB – 1 bpp.

Sample:

ImageClean

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