![]() | ![]() | ![]() |
| ||
|
IHTMLScreen::get_colorDepth
HRESULT get_colorDepth( long *p ) ;Retrieves the bits-per-pixel used for colors on the destination device or buffer. Script programmers use this value when deciding how best to use colors.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the color depth.
The value of this read-only property depends on the bufferDepth property. If bufferDepth is 0 or -1, colorDepth is equal to the bits-per-pixel value for the screen or printer. If bufferDepth is non-zero, colorDepth is equal to bufferDepth.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.