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
Tue, 07/03/2012 - 14:57
#1
How to draw an image?
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.