ImageGear for C and C++ on Windows v19.6 - Updated
IG_REC_languages_set
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Language Settings Functions > IG_REC_languages_set

Defines the main part of the Language environment of the Character Set. The available languages are represented by enumIGRecLanguages.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_languages_set(
   enumIGRecLangEnable* pLanguages
);

Arguments:

Name Type Description
pLanguages enumIGRecLangEnable* Address enumIGRecLangEnable array containing the enabled/disabled information for each recognition language available.

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;
enumIGRecLangEnable eLangEnabled[IG_REC_LANG_SIZE] = {IG_REC_LANG_DISABLED};
eLangEnabled[IG_REC_LANG_ENG] = IG_REC_LANG_ENABLED;

ErrCount += IG_REC_spelling_is_enabled_set(TRUE);
ErrCount += IG_REC_correction_is_enabled_set(TRUE);
ErrCount += IG_REC_spelling_language_set(IG_REC_LANG_ENG);
ErrCount += IG_REC_languages_set(eLangEnabled);

Remarks:

  1. The Language environment is primarily determined by the language selection, optionally supplemented by the LanguagesPlus characters setting.
  2. The language selection is specified through a enumIGRecLangEnable type array, where a IG_REC_LANG_ENABLED value means that the language represented by this element is supported. This array must have IG_REC_LANG_SIZE number of elements.
  3. If this function is not called to specify the language(s) to be recognized, the default value, the English language, is applied.