here's the inverted code snippet of the previous post.
w, h = surface.get_width(), surface.get_height()
pixmap = gtk.gdk.Pixmap (None, w, h, 24)
cr = pixmap.cairo_create ()
cr.set_source_surface (surface, 0, 0)
cr.paint ()
pixbuf = gtk.gdk.Pixbuf (gtk.gdk.COLORSPACE_RGB, True, 8, w, h)
pixbuf = pixbuf.get_from_drawable (pixmap, gtk.gdk.colormap_get_system(), 0, 0, 0, 0, w, h)
2 comments:
Thanks for providing this information. It's very helpful.
SRI ANNAPOORNESHAWARI ASTROLOGY CENTER.Best Astrologer In Michigan
Nice blog, thanks for posting
Post a Comment