© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
217
Return values
One of the submitted parameters is outside the
valid range or is not supported for this sensor or
is not available in this mode.
The camera model used here does not support
this function or setting.
Function executed successfully
Related functions
is_SetHardwareGamma()
Example 1
/* set gamma value to 1.6 */
INT nGamma = 160;
INT nRet = is_Gamma(hCam, IS_GAMMA_CMD_SET, (void*) &nGamma, sizeof(nGamma));
Example 2
/* set gamma to default value */
INT nGamma;
INT nRet = is_Gamma(hCam, IS_GAMMA_CMD_GET_DEFAULT, (void*)&nGamma, sizeof(nGamma));
if (nRet == IS_SUCCESS)
{
is_Gamma(hCam, IS_GAMMA_CMD_SET, (void*)&nGamma, sizeof(nGamma));
}
Beispiel 3
/* read gamma value to nGamma */
INT nGamma;
INT nRet = is_Gamma(hCam, IS_GAMMA_CMD_GET, (void*) &nGamma, sizeof(nGamma));
See also:
Basics: Characteristics and LUT
Basics: Color filter (Bayer filter)
Programming: is_SetColorConverter()
4.3.31 is_GetActiveImageMem
Syntax
INT is_GetActiveImageMem (HIDS hCam, char** ppcMem, INT* pnID)
Description
is_GetActiveImageMem() returns the pointer to the starting address and the ID number of the active
image memory.
If a Direct3D mode is active and image memory was nevertheless allocated, the pointer to the
image memory and its ID will be returned. However, in Direct3D mode, the image will not be
copied automatically to this image memory.