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

Ami Ganguli ami.ganguli at gmail.com
Wed Sep 1 22:35:15 PDT 2010


Hi all,

I need to manipulate some images in ways that don't seem to be
supported by Cairo yet, but are available in Pixman.  Since Cairo uses
Pixman under the covers, it seems like there should be an easy way to
load my image in pixman, do what I need to do, then convert to Cairo
for further rendering.

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?

Thanks for any advice,
Cheers,
Ami.


More information about the cairo mailing list