www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 colorDepth Property
colorDepth Property

Retrieves the number of bits per pixel used for colors on the destination device or buffer.

Syntax

[ iBitsPerPixel = ] screen.colorDepth

Possible Values

iBitsPerPixelInteger that receives one of the following values.
1, 4, 8, 15, 16, 24, 32Number of bits per pixel, expressed as an integer, to use for the off-screen buffer. 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-only. The property has no default value.

Remarks

Retrieving the value of the property through script enables you to select an appropriate color to return to the browser.

If bufferDepth is 0 or -1, colorDepth is equal to the bits-per-pixel value for the screen or printer. If bufferDepth is nonzero, colorDepth is equal to bufferDepth.

Standards Information

There is no public standard that applies to this property.

Applies To

screen
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG