[cairo] Saving a cairo surface to a file

Federico Mena Quintero federico at ximian.com
Wed Jan 25 13:48:35 PST 2006


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?

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

  Federico



More information about the cairo mailing list