Click to return to the DHTML, HTML     
browserLanguage Property     button Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

bufferDepth Property


Sets or retrieves the number of bits per pixel used for colors in the off-screen bitmap buffer.

Syntax

HTMLN/A
Scriptingscreen.bufferDepth [ = iBitsPerPixel ]

Possible Values

iBitsPerPixel Integer that specifies one of the following values:
0 No explicit buffering occurs. The colorDepth property is set to the screen depth.
-1 Buffering occurs at screen depth. The colorDepth property is set to the screen depth.
1, 4, 8, 15, 16, 24, 32 Number of bits per pixel to use for the off-screen buffer. The colorDepth property 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 red-green-blue (RGB) values.

The property is read/write with a default value of 0.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

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 bufferDepth is set to a specific value.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting screen


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.