gtkImageNewFromFile          package:RGtk2          R Documentation

_g_t_k_I_m_a_g_e_N_e_w_F_r_o_m_F_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     gtkImageNewFromFile(filename, show = TRUE)

_A_r_g_u_m_e_n_t_s:

'filename': [character]  a filename

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     ['GtkWidget']  a new 'GtkImage'

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

