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

Sets settings collection to be used in the current thread in many functions, such as IG_REC_image_preprocess, and so on.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_settings_collection_ID_set(
   AT_INT nSettingsId
);

Arguments:

Name Type Description
nSettingsId AT_INT ID of the settings collection to be used in the functions.

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;
AT_INT nSettingsId = 0;

ErrCount += IG_REC_settings_collection_create(-1, &nSettingsId);
ErrCount += IG_REC_settings_collection_ID_set(nSettingsId);
ErrCount += IG_REC_settings_collection_ID_set(0);
ErrCount += IG_REC_settings_collection_delete(nSettingsId);