Bitmaps

Bitmaps are blocks of pixel data that can be output directly to a device, such as a video display. They can be thought of as a way to store the pixel data directly from the screen into a memory buffer. Painting bitmaps onto the screen is much faster than using GDI functions like Rectangle and LineTo. The drawbacks to bitmaps are that they take up a lot of memory and disk space, and they do not scale well, especially if they contain text. When you scale a bitmap, it loses quality and distorts the text.

Windows provides two types of bitmaps: the device-dependent bitmap (DDB) and the device- independent bitmap (DIB). The device-dependent bitmap is an older format that is, as its name implies, less flexible than the device-independent bitmap. ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.