Bitmap Data

The bits in the array are packed together, but each line of pixels, or scan line, must be zero-padded to end on a LONG boundary. Segment boundaries can appear anywhere in the bitmap, however. The origin of the bitmap is the lower-left corner.

Windows supports run-length encoded formats for compressing 4- and 8-bit bitmaps. Compression reduces the disk and memory storage required for the bitmap. “Windows 3.0 Bitmap Compression Formats,” later in this chapter, discusses compression formats for the bitmap data.