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

This is another more powerful and flexible function for inverting white text.

Declaration:

 
Copy Code
AT_ERRCOUNT IG_IC_invert_white_text_ex ( 
        HIGEAR hIGear, 
        INT MinX, 
        INT MinY, 
        INT MinT, 
        INT MinLetterSize, 
        INT MaxLetterSize, 
        INT MaxBorder
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
MinX INT Minimum width of the region to be considered.
MinY INT Minimum height of the region to be considered.
MinT INT Minimum "thickness" of spaces falling between sections of text for inversion.
MinLetterSize INT Minimum size of the white letter.
MaxLetterSize INT Maximum size of the white letter.
MaxBorder INT Maximum size of the border around the letter cell.

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 detects areas of white text on black backgrounds in 1-bit images and inverts them so that they become black text on white backgrounds. This function scans your entire image and makes adjustments to all areas of white text (on black) that fall within the scope of your settings.

Refer to the Component Manager API section.

See also IG_IC_invert_white_text() function.