Package: cairo

Function cairo:surface-write-to-png

Lambda List

cairo:surface-write-to-png (surface path)

Arguments

surface -- a cairo:surface-t instance for pixel contents
path -- a namestring or pathname for the path of a file to write to

Return Value

:success if the PNG file was written successfully. Otherwise, :no-memory if memory could not be allocated for the operation or :surface-type-mismatch if the surface does not have pixel contents, or :write-error if an I/O error occurs while attempting to write the file.

Details

Writes the contents of the image surface to a new file as a PNG image.
 

See also

2025-1-13