Gets the number of bits per pixel used for colors on the destination device or buffer.
Number 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.
- CSSOM View Module, 4.2
Retrieving the value of the property through script enables you to select an appropriate color to return to the client.
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.