Table 2 PCX File Header Structure
<B>Name Bytes Description</B> ---------------------------------------------------------- PCX Flag 1 constant flag Version 1 PCX version number Encoding 1 run-length encoding flag Bits per Pixel 1 number of bits per pixel per plane Window 8 window dimensions HDPI 2 horizontal image resolution VDPI 2 vertical image resolution Color Map 48 hardware R-G-B color palette Reserved 1 (used to contain video mode) NPlanes 1 number of color planes Bytes per Line 2 number of bytes per scan line Palette Info 2 palette interpretation HScreen Size 2 horizontal screen size VScreen Size 2 vertical screen size Filler 54 initialized filler bytes