Function ImageSurface.writeToPNG
Writes the contents of surface to a new file
filename as a PNG image.
Prototype
void writeToPNG(
string file
);
Parameters
Name | Description |
---|---|
file | 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"
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |