Gets the number of bits per pixel that is used for colors on the destination device or buffer.
HRESULT IHTMLScreen4::get_pixelDepth(long *p);
- Pointer to a variable of type long that receives one of the values listed in Possible Values.
1, 4, 8, 15, 16, 24, 32 The number of bits per pixel, expressed as an integer, to use for the off-screen buffer. The value 15 specifies 16 bits per pixel, in which only 15 bits are used in a 5-5-5 layout of RGB values.
Returns S_OK if successful, or an error value otherwise.
If IHTMLScreen::bufferDepth is 0 or -1, IHTMLScreen4::pixelDepth is equal to the bits-per-pixel value for the screen or printer.
If IHTMLScreen4::pixelDepth does not equal zero, IHTMLScreen4::pixelDepth is equal to IHTMLScreen::colorDepth.