[cairo] How can I save a Cario context to a file?

Christian Biesinger cbiesinger at web.de
Fri Jan 6 08:29:18 PST 2006


yinglcs at aim.com wrote:
> If I pointer to a cairo drawing surface, (see below), how can I save the 
> whole context to a file?

If you compiled cairo with PNG support, you can just use 
cairo_surface_write_to_png:

http://www.cairographics.org/manual/cairo-PNG-Support.html#cairo-surface-write-to-png


More information about the cairo mailing list