[cairo] Saving a surface to a file
yinglcs2 at yahoo.com
yinglcs2 at yahoo.com
Tue Dec 12 11:06:56 PST 2006
Hi,
I have the following code which save a cairo surface to a png file.
I have run it under cairo 1.0.2 and it works.
However, as soon as I upgrade my library to cairo 1.2.6. No image is save. the output png is merely 206 bytes. Can any one tell me what do I need to do to following code in order to make it work under cairo 1.2.6?
char filename[20];
GetOutputFileName(filename);
cairo_surface_write_to_png(new_surface, filename);
cairo_destroy (cr2);
Thank you.
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
More information about the cairo
mailing list