[comp.windows.ms.programmer] .pcx file format

Joachim_Kainz@p11.f11.n310.z2.fidonet.org (Joachim Kainz) (05/26/91)

 > Can anyone give me any info on the MS-Windows paintbrush .PCX file
 > format?  If not the file specs, a good source would suffice.

The PCX-Header contains:


offset      bytes       comment
---------------------------------------------------------------------
0           1           ID. must be set to 0x0A
1           1           version number
                              0 = version 2.5
                              2 = version 2.8 (with palette-info)
                              3 = version 2.8 (w/o  pallete-info)
                              5 = version 3.0
2           1           0 = uncoded, 1 = RLE-coded
3           1           bits per pixel
4           2           xMin
6           2           yMin
8           2           xMax
10          2           yMax
12          2           horizontal resolution (dots per inch)
14          2           vertical   resolution (dots per inch)
16          48          color map (16*3byte)
64          1           reserved
65          1           number of color planes (max. 4)
66          2           bytes per line (must be an even number)
68          2           palette-data (1 = color - B/W, 2 = gray-scale)
70          58          unused


If you need more information, just let me know.

Greetings from Vienna,
jfk.

Jeff_Cochran@f1302.n371.z1.fidonet.org (Jeff Cochran) (05/27/91)

Doug
 
The Graphsupport forum on CompuServe has a file with the ZSoft .PCX file 
characteristics.  TYhere's also a book out by Stephen Rimmer that is great for 
all graphics file formats, including .PCX.  Sorry, but I don't recall the name 
off hand.
 
Jeff