Re: [pygtk] Saving a pixmap to a file

2009-07-21 Thread Tomeu Vizoso
On Tue, Jul 21, 2009 at 12:09, Xenofon Papadopoulos wrote: > Is it possible to save a gtk.Pixmap to an image file? (i.e. a .png file) You can create a pixbuf from that pixmap, then save it: pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, has_alpha=False, bits_per_sample=8, width=width, height=hei

[pygtk] Saving a pixmap to a file

2009-07-21 Thread Xenofon Papadopoulos
Is it possible to save a gtk.Pixmap to an image file? (i.e. a .png file) ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/