Dynamsoft Panorama - API Reference
Functions
Basic Setting Functions

Functions

DPS_API int DPS_GetRuntimeSettings (void *hStitcher, DPS_RuntimeSettings *pSettings)
 
DPS_API int DPS_UpdateRuntimeSettings (void *hStitcher, DPS_RuntimeSettings *pSettings, char error[], int errorMsgBufferLen)
 

Function Documentation

◆ DPS_GetRuntimeSettings()

DPS_API int DPS_GetRuntimeSettings ( void *  hStitcher,
DPS_RuntimeSettings pSettings 
)

Gets current settings and saves them into a struct.

Parameters
[in]hStitcherHandle of the Panorama instance.
[in,out]pSettingsThe struct of template settings.
Returns
Returns error code. Returns 0 if the function operates successfully. You can call DPS_GetErrorString() to get detailed error message.
Code Snippet:
void* panorama = DPS_CreateInstance();
DPS_InitLicense(panorama, "t0260NwAAAHV***************");
int ret = DPS_GetRuntimeSettings(panorama, &settings);
See also
C Functions

◆ DPS_UpdateRuntimeSettings()

DPS_API int DPS_UpdateRuntimeSettings ( void *  hStitcher,
DPS_RuntimeSettings pSettings,
char  error[],
int  errorMsgBufferLen 
)

Updates runtime settings with a given struct.

Parameters
[in]hStitcherHandle of the Panorama instance.
[in]pSettingsThe struct of template settings.
[in,out]errorThe buffer is allocated by caller and the recommended length is 256. The error message will be copied to the buffer.
[in]errorMsgBufferLenThe length of the allocated buffer.
Returns
Returns error code. Returns 0 if the function operates successfully. You can call DPS_GetErrorString() to get detailed error message.
Code Snippet:
void* panorama = DPS_CreateInstance();
DPS_InitLicense(panorama, "t0260NwAAAHV***************");
int ret = DPS_GetRuntimeSettings(panorama, &settings);
char error[256];
int ret0 = DPS_UpdateRuntimeSettings(panorama, &settings, error, 256);
See also
C Functions