Dynamsoft Panorama - API Reference
Functions
Callback Functions

Functions

DPS_API int DPS_SetResultCallback (void *hStitcher, CB_PanoramaResult cbFunction, void *pUser)
 
DPS_API int DPS_SetErrorCodeCallback (void *hStitcher, CB_PanoramaErrorCode cbFunction, void *pUser)
 

Function Documentation

◆ DPS_SetErrorCodeCallback()

DPS_API int DPS_SetErrorCodeCallback ( void *  hStitcher,
CB_PanoramaErrorCode  cbFunction,
void *  pUser 
)

Sets callback function to process errors generated during image stitching.

Parameters
[in]hStitcherHandle of the Panorama instance.
[in]cbFunctionCallback function.
[in]pUserCustomized arguments passed to your function.
Returns
Returns error code. Returns 0 if the function operates successfully. You can call DPS_GetErrorString() to get detailed error message. Possible returns are: DPS_OK; DPSERR_ERROR_CALLBACK_EXISTS;
Code Snippet:
void ErrorFunction(int errorCode, void * pUser)
{
//TODO add your code for using error code
}
void* panorama = DPS_CreateInstance();
DPS_SetErrorCodeCallback(panorama, ErrorFunction, NULL);
See also
C Functions ErrorCode

◆ DPS_SetResultCallback()

DPS_API int DPS_SetResultCallback ( void *  hStitcher,
CB_PanoramaResult  cbFunction,
void *  pUser 
)

Sets callback function to process panorama result, including stitched image and barcodes.

Parameters
[in]hStitcherHandle of the Panorama instance.
[in]cbFunctionCallback function.
[in]pUserCustomized arguments passed to your function.
Returns
Returns error code. Returns 0 if the function operates successfully. You can call DPS_GetErrorString() to get detailed error message. Possible returns are: DPS_OK; DPSERR_RESULT_CALLBACK_EXISTS;
Code Snippet:
void ResultFunction(PanoramaResultArray** pResult, void * pUser)
{
//TODO add your code for using panorama result
}
void* panorama = DPS_CreateInstance();
DPS_SetResultCallback(panorama, ResultFunction, NULL);
See also
C Functions