Microsoft Windows GDI Defines Monochrome Bitmap Format

Last reviewed: February 24, 1995
Article ID: Q74402
The information in this article applies to:
  • Microsoft Windows Device Driver Kit (DDK) for Windows versions 3.0 3.1

SUMMARY

In the Microsoft Windows graphical environment, a display driver can generally define its own color bitmap format based on the particular hardware it supports. However, a display driver cannot define its own monochrome bitmap format. The Windows graphics device interface (GDI) defines the monochrome bitmap format as follows: each byte contains 8 pixels with the most significant bit representing the left-most pixel. For example, to activate the pixel at the upper-left corner of the bitmap, set bit 7 of the first bitmap byte to 1.

Due to hardware design, it might be more convenient to define the monochrome bitmap format in some other fashion. However, Windows requires the particular monochrome bitmap format described above.

MORE INFORMATION

The main reason that the monochrome bitmap format cannot be redefined is to enforce a common standard across all devices. Windows can render a bitmap in this format on any display or any raster printer device.

GDI assumes the monochrome format for device-independent bitmap (DIB) simulations, StretchBlt simulations, and to allow Windows to select a monochrome bitmap in any device context regardless of the color resolution.


Additional reference words: 3.00 3.10 DDKDISPLAY
KBCategory: kbprg
KBSubcategory: GdiBmpBlt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 24, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.