| Home > Function descriptions > | History back Previous chapter Next chapter Print |
GetColorDepth |
|
uEye ActiveX Manual Version 4.00
Syntax
LONG GetColorDepth (LONG* pnCol, LONG* pnColMode)
Description
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 SetColorMode() function. You need to pass the bit depth when allocating an image memory.
Parameters
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 SetColorMode() |
Return values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |