Gtk.Image.prototype.get_pixbuf

function get_pixbuf():GdkPixbuf.Pixbuf {
    // Gjs wrapper for gtk_image_get_pixbuf()
}

Gets the GdkPixbuf.Pixbuf being displayed by the Gtk.Image. The storage type of the image must be Gtk.ImageType.empty or Gtk.ImageType.pixbuf (see Gtk.get_storage_type). The caller of this function does not own a reference to the returned pixbuf.

Returns

the displayed pixbuf, or null if the image is empty