Gtk.Image.FromFile Property
Creates a new Gtk.Image displaying the file filename If the file isn't found or can't be loaded, the resulting Image will display a "broken image" icon. This function never returns null, it always returns a valid Image widget. If the file contains an animation, the image will contain an animation. If you need to detect failures to load the file, use Gdk.Pixbuf to load the file yourself, then create the Image from the pixbuf. (Or for animations, use Gdk.PixbufAnimation). The storage type (Image.StorageType) of the returned image is not defined, it will be whatever is appropriate for displaying the file.

Syntax

public string FromFile { set; }

Value

an object of type string

Remarks

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)