Image.from_pixbuf


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public Image.from_pixbuf (Pixbuf? pixbuf)

Creates a new Image displaying pixbuf.

The Image does not assume a reference to the pixbuf; you still need to unref it if you own references. Image will add its own reference rather than adopting yours.

Note that this function just creates an Image from the pixbuf. The Image created will not react to state changes. Should you want that, you should use Image.from_icon_name.

Parameters:

pixbuf

a Pixbuf, or null

Returns:

a new Image