Re: Conversion from GdkRegion to GdkPixbuf



2006/11/28, Colossus <colossus 3000 it>:

I have some image data in a GdkRegion, I need to use gdk_pixbuf_save()
to save those image data in a png format. How can I convert it?

I guess you can use cairo to do that job creating a cairo context and
set the GdkRegion on the context with gdk_cairo_region(), then you
save the image in PNG file format.

cheers
--
Gian Mario Tagliaretti
http://www.parafernalia.org/pygtk/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]