Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

GetColorDepth

uEye ActiveX Manual Version 4.00

GetColorDepth

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


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com