ImageSurface.writeToPngStream

Writes the image surface to the write function. Since 1.0

class ImageSurface
writeToPngStream

Parameters

writeFunc cairo_write_func_t

a cairo_write_func_t

closure void*

closure data for the write function

Return Value

CAIRO_STATUS_SUCCESS if the PNG file was written successfully. Otherwise, CAIRO_STATUS_NO_MEMORY is returned if memory could not be allocated for the operation, CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not have pixel contents.

Meta