yinglcs at aim.com wrote: > If I pointer to a cairo drawing surface, (see below), how can I save the > whole context to a file? If you compiled cairo with PNG support, you can just use cairo_surface_write_to_png: http://www.cairographics.org/manual/cairo-PNG-Support.html#cairo-surface-write-to-png