[cairo] Cairo/Pixman newbie: how to convert pixman_image_t to cairo_surface_t

M Joonas Pihlaja jpihlaja at cc.helsinki.fi
Thu Sep 2 02:06:51 PDT 2010


> Alas, I can't find a public API for doing the conversion.  Am I
> missing something obvious, or should I dig through and copy private
> Cairo functions in to my own code?

If you're using raster images, then it's as simple as calling 
cairo_image_surface_create_for_data().  The other image types 
correspond to cairo patterns, but they can't be converted to cairo 
object directly I'm afraid.

Joonas


More information about the cairo mailing list