Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkImageNewFromFile

gtkImageNewFromFile


Description

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. This function never returns NULL, it always returns a valid GtkImage widget.

Usage

gtkImageNewFromFile(filename, show = TRUE)

Arguments

filename

a filename

Details

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

If you need to detect failures to load the file, use gdkPixbufNewFromFile to load the file yourself, then create the GtkImage from the pixbuf. (Or for animations, use gdkPixbufAnimationNewFromFile).

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

Value

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.