[cairo] Saving a cairo surface to a file

Meryl Silverburgh silverburgh.meryl at gmail.com
Wed Jan 25 14:32:15 PST 2006


On 1/25/06, Federico Mena Quintero <federico at ximian.com> wrote:
> On Tue, 2006-01-24 at 16:04 -0600, Meryl Silverburgh wrote:
>
> > I am calling cairo_surface_write_to_png() to a file.
> > Sometimes, I see content in the 'png', while other times I don't.
>
> Do you get a zero-byte file, or a good file with blank image data?
>
A small file with blank image data.


> Are you sure you are drawing within the surface's bounds?
>

How can I find out the surface's bounds?
And how can I find out if I am drawing within the surface's bounds?

Thank you.

>   Federico
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
>


More information about the cairo mailing list