From: Carl Worth Date: Wed, 13 Feb 2008 18:21:56 +0000 (-0800) Subject: Make spritext write its output to a PNG file X-Git-Url: https://git.cworth.org/git?p=spritext;a=commitdiff_plain;h=d8ee2429802e93ac01ddf3d42a9fb3a37b761e03 Make spritext write its output to a PNG file --- diff --git a/spritext.c b/spritext.c index 9bcffbe..a188f3e 100644 --- a/spritext.c +++ b/spritext.c @@ -297,6 +297,9 @@ cairo_pattern_destroy (gradient); } #endif + cairo_surface_write_to_png (surface, "spritext-output.png"); + printf ("Result written to spritext-output.png\n"); + cairo_destroy (cr); cairo_surface_destroy (surface);