7.1 About color

7.1.1 Color pixels

By convention, a bit is an element of a monochrome bitmap or a bitmap of depth 1; the bit can have a value of either 0 or 1. A pixel is an integer whose binary representation has the same number of bits as the depth of the bitmap, in the range from 0 to(1-(expt2(bitmap-depth bitmap)) inclusive. Thus, a bitmap of depth 8 can display as many as 256 colors or shades. A pixel can represent a color shade or a shade of grey, depending on the display that is used.

The actual color or shade appearance of a pixel on the screen is determined by the system color map.

The Window Tool Kit - 9 SEP 1996

Generated with Harlequin WebMaker