Please enable JavaScript to view this site.

IDS Software Suite 4.96.1

Windows_Logo
Linux_Logo

USB 2.0

USB 3.x

GigE

-

Syntax

INT is_GetColorDepth(HIDS hCam, INT* pnCol, INT* pnColMode)

Description

is_GetColorDepth() retrieves the current Windows Desktop color setting and returns the bit depth per pixel and the matching uEye color mode. The color mode can be passed directly to the is_SetColorMode() function. You need to pass the bit depth when allocating an image memory.

Input parameters

hCam

Camera handle

pnCol

Returns the bit depth of the color setting.

pnColMode

Returns the uEye color mode that corresponds to pnCol.

For a list of all available color formats and the associated input parameters, see the Appendix: color and Memory Formats section.

Return values

IS_INVALID_CAMERA_HANDLE

Invalid camera handle

IS_INVALID_PARAMETER

One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode.

IS_NO_SUCCESS

General error message

IS_NOT_SUPPORTED

The camera model used here does not support this function or setting.

IS_SUCCESS

Function executed successfully

Related functions

is_SetColorMode()

is_AllocImageMem()

© 2022 IDS Imaging Development Systems GmbH