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:
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:
- The Language environment is primarily determined by the language selection, optionally supplemented by the LanguagesPlus characters setting.
- 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.
- If this function is not called to specify the language(s) to be recognized, the default value, the English language, is applied.