Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cairoSurfaceWriteToPng

cairoSurfaceWriteToPng


Description

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

Usage

cairoSurfaceWriteToPng(surface, filename)

Arguments

surface

[CairoSurface] a CairoSurface with pixel contents

filename

[char] the name of a file to write to

Value

[CairoStatus] CAIRO_STATUS_SUCCESS if the PNG file was written successfully. Otherwise, CAIRO_STATUS_NO_MEMORY if memory could not be allocated for the operation or CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not have pixel contents, or CAIRO_STATUS_WRITE_ERROR if an I/O error occurs while attempting to write the file.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.