ImageSurface.writeToPNG

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

  1. void writeToPNG(string file)
    class ImageSurface
    version(D_Ddoc)
    void
    writeToPNG
    (
    string file
    )
  2. 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