ImageGear for C and C++ on Windows v19.5 - Updated
IG_REC_document_open
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Formatted Output Functions > IG_REC_document_open

Creates a new document and fills it with data from the specified data file.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_document_open(
   const LPSTR lpDataFileName,
   HIG_REC_DOCUMENT* lpDocument
);

Arguments:

Name Type Description
lpDataFileName const LPSTR Specifies the valid data file to be copied into the document.
lpDocument HIG_REC_DOCUMENT* Pointer to the document to be open.

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;
HIG_REC_DOCUMENT hRecDocument = 0;
ErrCount += IG_REC_document_open("recognition_data.bin", &hRecDocument);

//...

ErrCount += IG_REC_document_close(hRecDocument);

See Also

HIG_REC_DOCUMENT