This should really use cairo_surface_write_to_png_stream.
object
(error:wrong-type-argument object "a cairo_surface_t alien" operator)))
+(define (cairo-surface-write-to-png surface filename)
+ (guarantee-cairo-surface surface 'cairo-surface-write-to-png)
+ (guarantee-string filename 'cairo-surface-write-to-png)
+ (C-call "cairo_surface_write_to_png" surface filename))
+
(define (cairo-surface-flush surface)
(guarantee-cairo-surface surface 'cairo-surface-flush)
(C-call "cairo_surface_flush" surface))
(export (gtk)
cairo-image-surface-create
cairo-surface-destroy
+ cairo-surface-write-to-png
cairo-surface-flush
cairo-pattern-create-linear
cairo-pattern-create-radial