HBCMS更多的中文手册参考:

bufferDepth参数属性

DHTML文档教程

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

dhtml语法

screen.bufferDepth(v) [ = iBitsPerPixel ]

DHTML可能的值

iBitsPerPixelInteger that specifies or receives one of the following values.
0Default. No explicit buffering occurs. The colordepth property is set to the screen depth.
-1buffering occurs at screen depth. the colordepth property is set to the screen depth.
1, 4, 8, 15, 16, 24, 32Number 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 RGB values.

The property is read/write. The property has 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 about 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.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

screen