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

Retrieves the current language selection.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_languages_get(
   enumIGRecLangEnable* pLanguages
);

Arguments:

Name Type Description
pLanguages enumIGRecLangEnable* Pointer to an array to get the current language selection. The size of the array must be IG_REC_LANG_SIZE. Index of each element of this array represents a language (enumIGRecLanguages), that is, pLanguages[IG_REC_LANG_ENG] == TRUE means that English language is selected.

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};

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_get(eLangEnabled);

Remarks:

The Language environment is primarily determined by the language selection, optionally supplemented by the LanguagesPlus characters setting.