Pixbuf.from_resource


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.26" ) ]
public Pixbuf.from_resource (string resource_path) throws Error

Creates a new pixbuf by loading an image from an resource.

The file format is detected automatically. If `NULL` is returned, then error will be set.

Parameters:

resource_path

the path of the resource file

Returns:

A newly-created pixbuf