The OpenD Programming Language

ImageSurface.writeToPNG

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

class ImageSurface
version(D_Ddoc)
void
writeToPNG
(
string file
)

Parameters

file string

the name of a file to write to

Note: Only available if cairo, cairoD and the cairoD user code were compiled with "version=CAIRO_HAS_PNG_FUNCTIONS"

Meta