Microsoft Windows CE 3.0  

Using 4 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 4-bpp format is usually a palettized format. The frame buffer itself can be implemented either as 2 pixels packed into each byte or as 1 pixel per byte. The following illustration shows the arrangement of memory for the format.

If you choose to implement just 1 pixel per byte, the driver should represent the display mode as 8 bpp with a 16-color palette. The relevant bits in each byte should be the 4 lowest bits; the 4 highest bits should always be 0. For more information on formats in which single pixels do not fill entire bytes, see Using 5 or 6 Bits per Pixel. The following illustration shows the standard Windows CE 16-color palette, which you should use to obtain the best results.

 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.