[cairo] cairo_surface_t to GdkPixbuf conversion

Sven Herzberg herzi-ml at gnome-de.org
Mon Oct 20 00:01:33 PDT 2008


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.

gdk_pixmap_new()
gdk_cairo_create()
cairo_set_source_surface()
cairo_paint()
cairo_destroy()
gdk_pixbuf_get_from_drawable()

Like this?

Regards,
  Sven




More information about the cairo mailing list