finus@phcisa.UUCP (Finus van Cadsand) (07/27/90)
I have to do some conversion of paintbrush image files. Now I'm looking for references as to how the layout is of such a file. In the pbmplus/pbm I have found the utility pcxtopbm giving aclue as to how a monochrome paintbrush file looks like. But I have to use paintbrush files with multiple colors. Does anybody know how the header is built ? Or where and how the colour-information is stored ? ---------------------------------+---------------------------------------------- OOO RRRR I GGG I N N | L.P. van Cadsand, ORIGIN-Middleware O O R R I G G I NN N | vestdijk 9, (Bldg. HCM 503) O O RRRR I G I N N N | 5611 CA Eindhoven, the Netherlands O O R R I G GG I N NN | Tel. +31 40 758161 Fax. +31 40 756008 OOO R R I GGG I N N | Email: finus@ait.philips.nl ---------------------------------+----------------------------------------------
stoft@hpspkla.spk.hp.com (Dave E. Stoft) (07/28/90)
For the PCX format: ZSOFT Corp Technical Support Division Attn: Technical Reference Manual 450 Franklin Rd. Suite 100 Marietta, GA 30067 1-404-428-0008 Also, the Chapter 4 of the book Fractal Programming In C by Stevens The PCX file has a 128 byte header (bytes 16..+48 has the color palette info RGB RGB RGB...) followed by line-by-line run-length encoded data. -Dave