ImageΒΆ

Gtk.Image is a widget to display images. Various kinds of object can be displayed as an image. Most typically, you would load a Gdk.Texture from a file, using the convenience function Gtk.Image.new_from_file(), or Gtk.Image.new_from_icon_name().

Gtk.Image displays its image as an icon, with a size that is determined by the application. See Picture if you want to show an image at is actual size.

Sometimes an application will want to avoid depending on external data files, such as image files. See the documentation of Gio.Resource inside GIO, for details. In this case, Gtk.Image.props.resource and Gtk.Image.new_from_resource(), should be used.