Gtk.SelectionData.prototype.get_pixbuf

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

Gets the contents of the selection data as a GdkPixbuf.Pixbuf.

Since 2.6

Returns

if the selection data contained a recognized image type and it could be converted to a GdkPixbuf.Pixbuf, a newly allocated pixbuf is returned, otherwise null. If the result is non-null it must be freed with GObject.unref.