USB uEye XS |
USB uEye XS |
Syntax
INT is_DeviceFeature (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
Using is_DeviceFeature() you can configure special camera functions provided by specific uEye models:
•USB uEye XS: Use image effects, Opening USB uEye XS
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.
Input parameters
hCam |
Camera handle |
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
cbSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
Status flags from DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CAP_IMAGE_EFFECT |
Image effects are supported |
/* Set image effect to sepia */
INT nImageEffect = IS_IMAGE_EFFECT_SEPIA;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_IMAGE_EFFECT, (void*)&nImageEffect, sizeof(nImageEffect));
/* receive the current image effect */
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_IMAGE_EFFECT, (void*)&nImageEffect, sizeof(nImageEffect));
/* receive the default image effect */
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_IMAGE_EFFECT_DEFAULT, (void*)&nImageEffect, sizeof(nImageEffect));
/* disable the image effect */
INT nImageEffect = IS_IMAGE_EFFECT_DISABLE;
nRet = is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_SET_IMAGE_EFFECT, (void*)&nImageEffect, sizeof(nImageEffect));