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

cairoImageSurfaceCreateFromPng

cairoImageSurfaceCreateFromPng


Description

Creates a new image surface and initializes the contents to the given PNG file.

Usage

cairoImageSurfaceCreateFromPng(filename)

Arguments

filename

[char] name of PNG file to load

Value

[CairoSurface] a new CairoSurface initialized with the contents of the PNG file, or a "nil" surface if any error occurred. A nil surface can be checked for with cairo_surface_status(surface) which may return one of the following values: CAIRO_STATUS_NO_MEMORY CAIRO_STATUS_FILE_NOT_FOUND CAIRO_STATUS_READ_ERROR Alternatively, you can allow errors to propagate through the drawing operations and check the status on the context upon completion using cairoStatus.

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.