ImageGear Professional DLL v17.1 for Windows Accusoft
IG_IC_invert_white_text_ex
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > ImageClean Component API Reference > ImageClean Component Functions Reference > IG_IC_invert_white_text_ex

Glossary Item Box

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, 
        MinY, 
        INT MinT, 
        INT MinLetterSize, 
        INT MaxLetterSize, 
        INT MaxBorder
);

Arguments:

hIGear HIGEAR handle of image.
MinX Minimum width of the region to be considered.
MinY Minimum height of the region to be considered.
MinT Minimum "thickness" of spaces falling between sections of text for inversion.
MinLetterSize Minimum size of the white letter.
MaxLetterSize Maximum size of the white letter.
MaxBorder 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.

©2012. Accusoft Corporation. All Rights Reserved.