I am created an instance of gtk.gdk.Pixmap
, and painted on it something. For example:
pixmap = gtk.gdk.Pixmap(widget.window,100,800)
pixmap.draw_rectangle(gc, True, 0, 0, 100, 800)
pixmap.draw_line(gc, 0, 0,100, 800)
How can I to resize the Pixmap
? One way that I see is to copy the Pixmap
into a PixBuf
using gtk.gdk.Pixbuf.get_from_drawable
, then resize the Pixbuf
, and then copy the Pixbuf
to the Pixmap
Is there any way to do this without all the copying?