ImageGear for C and C++ on Windows v19.9 - Updated
IG_REC_default_filter_set
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Settings Functions > IG_REC_default_filter_set

Specifies a Global filter, i.e., a Character Set filter to be applied globally, at page level.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_default_filter_set(
   enumIGRecChrFilter Glfilter
);

Arguments:

Name Type Description
Glfilter enumIGRecChrFilter Global Character Set filter to be applied.

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
enumIGRecChrFilter eFilter = IG_REC_FILTER_ALPHA | IG_REC_FILTER_DIGIT | IG_REC_FILTER_PLUS;
ErrCount += IG_REC_default_filter_set(eFilter);

Remarks:

If this function is not called by the integrating application after the component initialization, the value IG_REC_FILTER_ALL is applied, i.e., the Language environment will not be filtered globally. The Global filter setting is applied to all zones with IG_REC_FILTER_DEFAULT in their filter field.