[cairo] cairo_surface_t to GdkPixbuf conversion
zaheer.mot at gmail.com
Mon Oct 20 03:18:19 PDT 2008
Thanks for the quick response. I tried the api gdk_pixbuf_get_from_drawable(
however it does not seem to work with a cairo_surface_t, is cairo_surface_t
a GdkDrawable i think its not?
cairo_sur = cairo_surface_create_for_image(...)
GdkPixbuf *pix = gdk_pixbuf_get_from_drawable(NULL,
(GdkDrawable*)cairo_sur, 0,0,0,0, width, height);
Let me know if somethings wrong above.
I see a patch that does this (surface_to_pixbuf)
will try and let u know..
On Mon, Oct 20, 2008 at 12:31 PM, Sven Herzberg <herzi-ml at gnome-de.org>wrote:
> Am Montag, den 20.10.2008, 12:26 +0530 schrieb zaheer ahmad:
> > hi,
> > I would like to convert a cairo_surface_t to GdkPixbuf. There seems to
> > be no straight forward apis to do that. looking for some inputs.
> Like this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo