Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "333) How do I convert my xpm file into a Pixmap? (The xpm file is"
Next document is "335) How do I get the events for gadgets? Or the name of the gadget?"
334) How can I display a gif/jpeg/tiff picture in a widget?
[Last modified: Sept 95]
Answer: Get the Xpm library and read the documentation. Get xpaint from
ftp.x.org, also get the jpeg and tiff libraries on the internet. From these
you can easily create the code to read in gif, jpeg, and tiff.
Read the images into and XpmImage format. Then use one of the Xpm conveneince
functions to create wither an XImage or a Pixmap from your data. The xpm lib
will take care of the color allocation and Pixmap/XImage creation, then you
can just use expose routines to copy the Pixmap into a dialog or any
window....
Thanks to Ramiro Estrugo (restrugo@fateware.com)
Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "333) How do I convert my xpm file into a Pixmap? (The xpm file is"
Next document is "335) How do I get the events for gadgets? Or the name of the gadget?"