IHTMLScreen::get_bufferDepthIHTMLScreen::get_bufferDepth*
*



Contents  *



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

IHTMLScreen::get_bufferDepth


HRESULT get_bufferDepth(
    long *p 
);

Retrieves an offscreen bitmap buffer.

p
Address of a variable that receives the buffer depth. Can be one of these values:
0 No explicit buffering. The colorDepth property is set to the screen depth.
-1 Perform buffering at the screen depth. The colorDepth property is set to the screen depth.
1, 4, 8, 15, 16, 24, or 32 Perform buffering using the given bits-per-pixel. The colorDepth is also set to this value. The value 15 specifies 16 bits-per-pixel, in which only 15 bits are used in a 5-5-5 layout of RGB values.

Nonsupported values cause bufferDepth to be set to -1. When bufferDepth is -1 and the user changes system settings that affect the screen depth, the buffer depth is automatically updated to the new depth. This is not the case if you set bufferDepth to a specific value.

See also put_bufferDepth

Up Top of Page


IHTMLScreen::put_bufferDepth


HRESULT put_bufferDepth(
    long v 
);

Sets an offscreen bitmap buffer.

v
Value specifying the buffer depth. Can be one of these values:
0 No explicit buffering. The colorDepth property is set to the screen depth.
-1 Perform buffering at the screen depth. The colorDepth property is set to the screen depth.
1, 4, 8, 15, 16, 24, or 32 Perform buffering using the given bits-per-pixel. The colorDepth is also set to this value. The value 15 specifies 16 bits-per-pixel, in which only 15 bits are used in a 5-5-5 layout of RGB values.

Nonsupported values cause bufferDepth to be set to -1. When bufferDepth is -1 and the user changes system settings that affect the screen depth, the buffer depth is automatically updated to the new depth. This is not the case if you set bufferDepth to a specific value.

See also get_bufferDepth


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