set_from_pixbuf


Description:

[ Version ( deprecated = true , deprecated_since = "4.12" ) ]
public void set_from_pixbuf (Pixbuf? pixbuf)

Warning: set_from_pixbuf is deprecated since 4.12.

Sets a `GtkImage` to show a `GdkPixbuf`.

Note:

Use [method@Gtk.Image.set_from_paintable] instead

See [ctor@Gtk.Image.new_from_pixbuf] for details.

Note: This is a helper for [method@Gtk.Image.set_from_paintable], and you can't get back the exact pixbuf once this is called, only a paintable.

Parameters:

this

a `GtkImage`

pixbuf

a `GdkPixbuf` or `NULL`