Specifications

OFFSET FIELD SIZE CONTENTS
0000h Identi ed 2 bytes
The characters identifying the bitmap. The following entries
are possible :
‘BM’ - Windows 2K3, XP, VISTA
0002h File size 1 dword Complete le size of BMP image in bytes.
0006h Reserved 1 dword Reserved for later use.
000Ah Bitmap Data Offset 1 dword
Offset from the beginning of the le until the beginning of
the graphics.
000Eh Bitmap Header Size 1 dword
Length of the bitmap Info header used to describe the
bitmap colours, compression, etc... The following sizes are
possible :
3Eh - Windows 2K3, XP, VISTA
0012h Width 1 dword Horizontal width of bitmap in pixels.
0016h Height 1 dword Vertical height of bitmap in pixels.
001Ah Planes 1 dword
Number of planes in this bitmap
1 - single plane
001Ch Bits per Pixel 1 dword
Bits per pixel used to store palette entry information. This also
identi es in an indirect way the number of possible colours.
Possible values are:
1 - Monochrome bitmap
4 - 16 bitmap color
8 - 256 bitmap color
16 - 16bit (high color) bitmap
24 - 24bit (true color) bitmap
32 - 32bit (true color) bitmap
001Eh Compression 1 dword
Compression speci cations. The following values are pos-
sible:
0 - none (Also identi ed by BI_RGB)
1 - RLE 8-bit / pixel (Also identi ed by BI_RLE4)
2 - RLE 4-bit / pixel (Also identi ed by BI_RLE8)
3 - Bit elds (Also identi ed by BI_BITFIELDS)
0022h Bitmap data Size 1 dword
Size of the bitmap data in bytes. This number must be
rounded to the next 4 byte boundary.
0026h HResolution 1 dword Horizontal resolution expressed in pixel per meter.
002Ah VResolution 1 dword Vertical resolution expressed in pixels per meter.
002Eh Colors 1 dword
Number of colours used by this bitmap. For a 8-bit / pixel
bitmap this will be 100h or 256.
0032h Important Colorsi 1 dword
Number of important colors. This number will be equal to the
number of colors when every color is important.
0036h Palette N*4 bytes
The palette speci cation. For every entry in the palette four
bytes are used to describe the RGB values of the colour in
the following way:
1 byte for blue component
1 byte for green component
1 byte for red component
1 byte ller which is set to 0 (zero)
0436h Bitmap Data x bytes
Depending on the compression speci cations, this eld
contains all the bitmap data bytes which represent indices
in the colour palette.
[Notes] • Simple monochrome images must be used.
• Maximum BMP size is 32 kbytes
• The following sizes were used in the speci cation above:
SIZE BYTES SIGN
char 1 signed
word 2 unsigned
dword 4 unsigned
[Default]
[Reference]
[Example]
ESC/POS™ Emulation
26 Command Reference