I have a gtk.Window that contains a gtk.DrawingArea in which I draw a
figure.  I want to save the figure to a file, and using some example
code posted to this list, I am doing

    win = self._widget.window
    width, height = win.get_size()
    pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, 0, 8, width, height)
    pixbuf.get_from_drawable(win, win.get_colormap(),
                             0, 0, 0, 0, width, height)
    pixbuf.save(filename, "png")

This works fine, except the image resolution is dependent on window
sizec.  What I would like to do is roughly double the width and the
width and the height of the window before saving it, but do it
invisibly, not affecting the image on the screen.

Is such a thing possible with the magic of Pixbuf's?

Thanks,
John Hunter

pygtk 1.99.14
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to