Variable | Description |
WORD type | The signature of the file format. Must be BM |
DWORD size | Size of the file |
DWORD reserved | ... |
DWORD offset | Offset of the data from this position. Must be 40 |
DWORD headersize | The size of the rest of the header |
DWORD width | Width of the image |
DWORD height | Height of the image |
WORD planes | Planes of the bitmap |
WORD bitsperpixel | number of bits per pixel |
DWORD compression | Type of compression used |
DWORD sizeimage | Size of the image data |
DWORD xpixelpermeter | Number of horizontal pixel per meter |
DWORD ypixelpermeter | Number of vertical pixel per meter |
DWORD colorsused | Number of colors used |
DWORD colorsimportant | Number of colors considered important |
4 - (width % 4)
bytes of each lines. See the demo program for the code.Variable | Description |
BYTE manufacturer | Costant flag 10 = ZSoft .PCX |
BYTE version | Version information |
BYTE encoding | 1= .PCX run length encoding |
BYTE bitsperpixel | Number of bits/pixel per plane |
WORD xmin | Picture dimensions |
WORD ymin | ... |
WORD xmax | ... |
WORD ymax | ... |
WORD hres | Horizontal resolution of creating device |
WORD vres | Vertical resolution of creating device |
char colormap[48] | Color palette setting (EGA) |
BYTE reserved | |
BYTE nplanes | Number of colors planes |
WORD bytesperline | Number of bytes per scan line per color plane (always even for .PCX files) |
WORD paletteinfo | How to interpret palette 1=color/BW 2=grayscale |
char filler[58] | Blank to fill out 128 bytes header |