GtkImage Constructor

GtkImage::new_from_file (filename);

Creates a new GtkImage displaying the file filename. If the file isn't found or can't be loaded, the resulting GtkImage will display a "broken image" icon.

If the file contains an animation, the image will contain an animation.

If you need to detect failures to load the file, use GdkPixbuf::new_from_file() to load the file yourself, then create the GtkImage from the pixbuf. (Or for animations, use GdkPixbufAnimation::new_from_file.

The storage type (get_storage_type() ) of the returned image is not defined, it will be whatever is appropriate for displaying the file.

This method must be called statically.