Microsoft Windows CE 3.0  

Using 5 or 6 Bits per Pixel

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The 5-bpp or 6-bpp format should always use a whole byte for each pixel. The relevant bits must be the low-order bits in the pixel, with unused high-order bits containing 0s.

With displays that use 5 bpp or 6 bpp, you can choose either to palettize the colors or to use the bits in the pixel to represent the colors directly. For example, you can make 6 bpp a 64-entry palettized display, or you can use the 6 bits in each pixel to represent 4 levels each of red, green, and blue directly. The following illustration shows the arrangement of memory for the format.

 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.