[ By Archive-name
| By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
Top Document: Motif FAQ (Part 5 of 9)
Previous Document: 138) How do I convert my XPM file into a Pixmap?
Next Document: 140) Can I use XmGetPixmap in Motif 1.2 to create colored images?
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
-
Search the FAQ Archives
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
Top Document: Motif FAQ (Part 5 of 9)
Previous Document: 138) How do I convert my XPM file into a Pixmap?
Next Document: 140) Can I use XmGetPixmap in Motif 1.2 to create colored images?
139) How can I display a multi-color image 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)
Top Document: Motif FAQ (Part 5 of 9)
Previous Document: 138) How do I convert my XPM file into a Pixmap?
Next Document: 140) Can I use XmGetPixmap in Motif 1.2 to create colored images?
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page
[ By Archive-name | By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)
Last Update July 06 2008 @ 00:13 AM