[cairo] How to convert cairo content to gdk-bifbuf

Sven Herzberg herzi-ml at gnome-de.org
Sat Jul 15 11:40:06 PDT 2006


On Sa, 2006-07-15 at 20:32 +0200, Sven Herzberg wrote: 
> Done, that should work, as gdk_cairo_create() does this for GdkDrawable
> which is realized by GdkWindow and GdkPixbuf.

Actually, this is not right: you should create a GdkPixmap, draw to it
(using the pixmap as the parameter for gdk_cairo_create()) and then
render the pixmap to a pixbuf using gdk_pixbuf_render_pixmap_and_mask().

Regards,
  Sven



More information about the cairo mailing list