[gtkada] Saving a drawing area/pixmaps contents to file (pixmap .xpm)

Emmanuel Briot briot at gnat.com
Mon Mar 26 11:10:00 CEST 2001


 > How can I save a gdk_pixmap or the contents of a drawing area to file (.XPM)

It isn't doable with gtk+.

I guess I would start by looking at libXpm (see xpm.h, that contains some
functions to write a Pixmap to a file), but you have to do the binding
yourself, at least for the one or two functions you need.
I don't know how it works on Windows systems, in case that's what you are
using.

Emmanuel




More information about the gtkada mailing list