How to draw an image?

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
How to draw an image?

Submitted by Anonymous on Fri, 01/04/2002 - 16:13. Developers
I have opened a .pgm image file. How can I draw this image in a window, which is not main window?
I would like to have a code example if possisble?
Thanks

ICS_support

I think you can link with the GIMP library and render the image at run-time into a supplemental window or pixmap.

If it is a small enough window, you can convert it to an XPM file and then use libXpm to read the file at run-time and render it.

In general, the tools provided by Xt, Motif, and Xlib aren`t enough to handle picture files; you need to look to extra libraries to handle images.