ImageGear for C and C++ on Windows v19.1 - Updated
IG_REC_approx_regex_progress_cb_set
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Approx Regex Functions > IG_REC_approx_regex_progress_cb_set

Assigns the approximate regex progress callback.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_progress_cb_set(
   const HIG_REC_APPROX_REGEX higRecApproxRegex,
   LPFNIG_REC_APPROX_REGEX_PROGRESS_CB const  lpfnCallback,
   LPVOID const  lpUserData
);

Arguments:

Name Type Description
higRecApproxRegex const HIG_REC_APPROX_REGEX The handle to an approximate regex instance.
lpfnCallback LPFNIG_REC_APPROX_REGEX_PROGRESS_CB The progress callback function to invoke during searches.
lpUserData LPVOID Anonymous data passed to the progress callback function.

Return Value:

The number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Use this function to install a callback to receive progress notifications prior to completion. The callback presents an opportunity to stop the current operation.

Example:

 
Copy Code
AT_ERRCOUNT errCount = 0 ;
HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ;
LPVOID user_data = 0 ;

IG_REC_approx_regex_create( &higRecApproxRegex ) ;
errCount = IG_REC_approx_regex_progress_cb_set 
                          ( higRecApproxRegex, 
                            &on_approx_regex_progress,
                            &user_data
                          ) ;
IG_REC_approx_regex_delete( higRecApproxRegex ) ; 

Remarks:

Use this function to install a callback to receive progress notifications prior to completion. The callback presents an opportunity to stop the current operation.

See Also

HIG_REC_APPROX_REGEX