[cairo] Saving surface as Jpeg

Behdad Esfahbod behdad at behdad.org
Fri May 1 09:48:46 PDT 2009

Or you can use libgdk-pixbuf.


On 05/01/2009 10:27 AM, Dominic Lachowicz wrote:
> http://www.cairographics.org/manual/cairo-image-surface.html
> You can get the width, height, stride, format, and ARGB "raster" data,
> which will probably need to be transformed into what libjpeg expects.
> On Fri, May 1, 2009 at 10:11 AM, Angus March<angus at uducat.com>  wrote:
>> I have a Cairo surface that I want to be able to save as Jpeg. I can use
>> libjpeg for this, but I need to get the image as raster data, and I
>> haven't been able to figure out how to do that from the manual.
>> _______________________________________________
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list