asp.net.ph

Skip Navigation Links

bufferDepth Property

screen Properties   DHTML Object Properties


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

Syntax


HTML N/A
Script screen.bufferDepth [ = iBitsPerPixel ]

Possible Values


0 Integer indicating no explicit buffering. The colorDepth property is set to the screen depth.
-1 Integer indicating buffering at the screen depth. The colorDepth is set to the screen depth.
1, 4, 8, 15, 16, 24, 32 Integer specifying the number of bits per pixel to use for the off-screen buffer. 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.

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

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

screen



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note