IHTMLScreen::get_colorDepthIHTMLScreen::get_colorDepth*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLScreen
*Next Topic: IHTMLScreen::put_bufferDepth

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.

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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.