Re: writting out a pixmap file

Kevin Mulholland (kevin@dvstsol.demon.co.uk)
Thu, 13 Mar 1997 09:33:55 +0000 (GMT)

To subscribers of the xforms list from Kevin Mulholland <kevin@dvstsol.demon.co.uk> :

On Wed, 12 Mar 1997, Steve Lamont wrote:

>
[my quote snipped]
[more snipped]
>refer to the Xpm documentation will give guidance on how to do this.
>
>Check either
>
> ftp.x.org (18.112.44.100) contrib (Boston, USA)
> koala.inria.fr (138.96.24.30) pub/xpm (Sophia Antipolis, France)
>
>for the current release of Xpm and its docs.
>
>If you mean a real, honest to goodness X Pixmap, then things may be a
>bit more involved. You need to read the Pixmap from the X server with
>XGetImage().
>
>If the Pixmap is from a TrueColor Visual then all you have to do is
>write the data out in your favorite format.
>
>If the Pixmap is from a PseudoColor visual, then you have to remap the
>pixels from server Colormap space to RGB space. To do this, you'll
>have to get the lookup table from the Colormap using XQueryColors()
>and do a table lookup.
>
>Refer to your favorite Xlib manual set for the details.
>
> spl

so I forget again, XPM is not a part of xforms, so I need to look in the
right docs. thanks for putting me straight, using

XpmWriteFileFromImage, XpmWriteFileFromPixmap or XpmWriteFileFromXpmImage

should do the trick.

Read the manual - hah - software engineers don't read manuals.
Ah so THAT explains windows95
-----------------------------------------------------------------
homepages http://www.dvstsol.demon.co.uk/kevin

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/