Creates a new image surface and initializes the contents to the given PNG file.
[char] name of PNG file to load
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:
Alternatively, you can allow errors to propagate through the drawing
operations and check the status on the context upon completion
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.