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

Loads the settings from the specified file.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_settings_load(
   LPCSTR pFileName
);

Arguments:

Name Type Description
pFileName LPCSTR Name of the file from which to load the settings.

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;
ErrCount = IG_REC_settings_save("settings.cfg");

//...

ErrCount = IG_REC_settings_load("settings.cfg");

Remarks:

The function sets all the rest of the settings to default values before loading the settings from the file.