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