home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21670 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!ukma!gatech!swrinde!sdd.hp.com!network.ucsd.edu!loral.CTS.COM!ross
  3. From: ross@loral.cts.com (Robert Ross)
  4. Subject: using Pixmaps via XPM
  5. Message-ID: <1993Jan28.011535.5801@loral.CTS.COM>
  6. Keywords: pixmap, XPM1, XPM3
  7. Sender: usenet@loral.CTS.COM
  8. Organization: Loral Instrumentation
  9. Distribution: usa
  10. Date: Thu, 28 Jan 93 01:15:35 GMT
  11. Lines: 34
  12.  
  13. I am using a pixel editor to create full color icons.  When I save
  14. the icon image, it is output into a file in the XPM3 format.  A previous
  15. version of the pixel editor program wrote the output in the XPM1 format.
  16.  
  17. I also have the xpm_pixmap.c file (Copyright 1990 GROUPE BULL) which
  18. has functions for turning the pixmap file into an X Pixmap.  Or so I thought.
  19. Judging by the arguments to XPM_PIXMAP() function, I believed that it
  20. wanted a Widget and the pixmap file name.  I found out that that wasn't it.
  21. (There are very few comments in the xpm_pixmap.c code)
  22.  
  23. It seems that it wants a char array of all of the pixmap data, but with all
  24. of the quotation marks, commas, braces, comments, stripped out.
  25.  
  26. Is this true, and if so, does someone out there already have a function
  27. that does this parsing?  
  28.  
  29. Does anyone know if XPM_PIXMAP() handles both XPM1 and XPM3 formats?
  30.  
  31. Another pixmap issue:
  32.  
  33. I'm also trying to write a program that grabs a section of the screen and
  34. converts from an XImage to a Pixmap and outputs the pixmap data to
  35. a file using XPM3 format.  I'm stuck on the part about Chars-per-pixel.
  36. I don't have any example XPM3 files that show Chars-per-pixel > 1.
  37.  
  38. Anybody out there have such a XPM3 file?  Is there a program that does
  39. what I'm trying to do already?  If you know of one, could you give me
  40. name and the internet location?
  41.  
  42. Thanks mucho,
  43. --
  44.  
  45. Bob Ross (ross@li.loral.com)         | "Mr. Plow, that's the name. That name
  46. Loral Instrumentation, San Diego, CA |  again is Mr. Plow" - Homer Simpson
  47.