Offset 0000h Field Identifier Size 2 bytes

0002h 0006h 000Ah 000Eh File Size Reserved Bitmap Data Offset Bitmap Header Size 1 dword 1 dword 1 dword 1 dword

0012h 0016h 001Ah 001Ch Width Height Planes Bits Per Pixel 1 dword 1 dword 1 word 1 word

001Eh 0022h 0026h 002Ah 002Eh 0032h 0036h 0436h Compression Bitmap Data Size HResolution VResolution Colors Important Colors Palette Bitmap Data 1 dword 1 dword 1 dword 1 dword 1 dword 1 dword N * 4 byte x bytes

Contents The characters identifying the bitmap. The following entries are possible: BM - Windows 3.1x, 95, NT; BA  OS/2 Bitmap Array; CI  OS/2 Color Icon; CP  OS/2 Color Pointer; IC  OS/2 Icon; PT  OS/2 Pointer Complete file size in bytes. Reserved for later use. Offset from beginning of file to the beginning of the bitmap data. Length of the Bitmap Info Header used to describe the bitmap colors, compression; The following sizes are possible: 28h  Windows 3.1x, 95, NT; 0Ch  OS/2 1.x; F0h  OS/2 2.x Horizontal width of bitmap in pixels. Vertical height of bitmap in pixels. Number of planes in this bitmap. Bits per pixel used to store palette entry information. This also identifies in an indirect way the number of possible colors. Possible values: 1, 4, 8, 16, 24, 32. Compression specifications. The following values are possible: 0 - none, 1 RLE 8-bit / pixel, 2 - RLE 4-bit / pixel, 3 - Bitfields Size of the bitmap data in bytes. This number must be rounded to the next 4 byte boundary. Horizontal resolution expressed in pixel per meter. Vertical resolution expressed in pixels per meter. Number of colors used by this bitmap. For a 8-bit / pixel bitmap this will be 100h or 256. Number of important colors. This number will be equal to the number of colors when every color is important. The palette specification. For every entry in the palette four bytes are used to describe the RGB values of the color. Depending on the compression specifications, this field contains all the bitmap data bytes which represent indices in the color palette.

1


