This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pixelDepth

Property of css/cssom/screencss/cssom/screen

Syntax

var result = element.pixelDepth;
element.pixelDepth = value;

Notes

Remarks

If you retrieve the value of the pixelDepth property through a script, you can select an appropriate color to return to the browser. If bufferDepth is 0 or -1, pixelDepth is equal to the bits-per-pixel value for the screen or printer. If pixelDepth does not equal zero, pixelDepth is equal to colorDepth.

Syntax

Standards information

See also

Related pages

Attributions