[cairo] Writing PNG text information into a PNG using cairo-surface-write-to-png-stream

Ben Bullock benkasminbullock at gmail.com
Tue Dec 28 01:59:57 PST 2010


On 21 December 2010 18:52, Andrea Canciani <ranma42 at gmail.com> wrote:

> The png API in cairo is a "toy" API.
>
> If you need more control over the output (additional PNG tags,
> different compression
> or file format) you should access the data directly using
> http://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-get-data
> Please remember that you should call
> http://cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-flush
> before reading the data.

OK, thanks for this guidance. I've now got a working program which
outputs a PNG from an image created by Cairo. I've uploaded it to the
following web page:

http://www.lemoda.net/png/cairo-to-png/index.html


More information about the cairo mailing list