pixbuf_from_file


Description:


[ Version ( deprecated = true ) ]
public Pixbuf? pixbuf_from_file (string filename) throws Error

Warning: pixbuf_from_file is deprecated.

Loads a new `GdkPixbuf` from filename and returns it.

Note:

Use [ctor@Rsvg.Handle.new_from_file] and [method@Rsvg.Handle.render_document] instead.

The caller must assume the reference to the reurned pixbuf. If an error occurred, throws is set and `NULL` is returned.

Parameters:

filename

A file name

Returns:

A pixbuf, or null on error.


Namespace: Rsvg
Package: librsvg-2.0