ImageGear for C and C++ on Windows v19.1 - Updated
IG_REC_output_codepage_info_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Output Functions > IG_REC_output_codepage_info_get

Provides information about the specified Code Page: a descriptive string and the category of the Code Page.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_output_codepage_info_get(
   LPCSTR pCodePageName,
   LPSTR pDesc,
   AT_INT nBuferLength,
   enumIGRecOutCodePageType* pCodePageType
);

Arguments:

Name Type Description
pCodePageName LPCSTR Name of the Code Page inquired.
pDesc LPSTR Pointer of a buffer to hold the Code Page descriptor information.
nBuferLength AT_INT Length of pDesc buffer.
pCodePageType enumIGRecOutCodePageType* Pointer to enumIGRecOutCodePageType variable to hold Code Page category information.

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;
LPSTR lpszDesc = 0;
AT_INT iDescLen = 1024;
enumIGRecOutCodePageType eCodePageType = IG_REC_CODEPAGE_UNKNOWN;

lpszDesc = (LPSTR) malloc(iDescLen);
ErrCount += IG_REC_output_codepage_info_get("Windows ANSI", lpszDesc, iDescLen, &eCodePageType);
free(lpszDesc);