Syntax
INT is_GetColorDepth(HIDS hf, INT* pnCol, INT* pnColMode)
Description
is_GetColorDepth() gets the current VGA card color setting and returns the bit depth (pnCol) and the related color mode (pnColMode). The color mode can be directly passed to the is_SetColorMode() function.
Parameters
hf |
Frame grabber handle |
PnCol |
Returns color depth of the color mode •8: at 256 colors •15: at 32768 colors (5:5:5 mode) •16: at 65536 colors (5:6:5 mode) •24: at 16777216 colors (8:8:8 mode) •32: at 16777216 colors (0:8:8:8 mode) |
pnColMode |
Returns color mode •IS_SET_CM_Y8: at pnCol = 8 •IS_SET_CM_RGB15: at pnCol = 15 •IS_SET_CM_RGB16: at pnCol = 16 •IS_SET_CM_RGB24: at pnCol = 24 •IS_SET_CM_RGB32: at pnCol = 32 |
Return value
IS_SUCCESS, IS_NO_SUCCESS