[comp.windows.x] Question about format of X Pixmap file

hughes@azroth.csee.usf.edu (Ken Hughes) (10/22/90)

I'm writing a utility to convert XPM files to PPM files.  I have the line

#define noname_chars_per_pixel 2

in the file, but can't find anywhere where it is actually explained.  Does
this describe the number of characters I should expect for each color in
the color descriptions?  If not, what is it?  I have some XPM files with
this line and 12 character color descriptions, but programs like xloadimage(1)
ae happy with it.

-----------------------------------------------------------------------------
Ken Hughes  (hughes@sol.csee.usf.edu) |  "Which button do I press, J.D.?"
FT-Ph D student, PT-ex-sysadm	      |  "Try the red one."
Dept of Comp Sci and Eng	      |  <pause> "Which red button?"
University of South Florida	      |     from _Heathers_
---------------------------------------------------------------------------

lehors@avahi.inria.fr (Arnaud Le Hors) (10/24/90)

>#define noname_chars_per_pixel 2
>
>Does
>this describe the number of characters I should expect for each color in
>the color descriptions?

Yes, and in the pixels description too.

But, it now exists a new version of XPM (which is fully documented) and it
would be better to write your converter for this rather than XPM1.


XPM2 available on expo.lcs.mit.edu or avahi.inria.fr.

--
   Arnaud LE HORS
   BULL Research FRANCE -- Koala Project   |    Email : lehors@mirsa.inria.fr
         Inria - Sophia Antipolis          |    Phone : (33) 93 65 77 71
         2004, Route des Lucioles          |    Telex :      97 00 50 F
         06565 Valbonne CEDEX  France      |    Fax   : (33) 93 65 77 66