1
1
\alias{gtkImageNewFromFile}
2
2
\name{gtkImageNewFromFile}
3
3
\title{gtkImageNewFromFile}
4
\description{Creates a new \verb{\link{GtkImage}} displaying the file \code{filename}. If the file
5
isn't found or can't be loaded, the resulting \verb{\link{GtkImage}} will
4
\description{Creates a new \code{\link{GtkImage}} displaying the file \code{filename}. If the file
5
isn't found or can't be loaded, the resulting \code{\link{GtkImage}} will
6
6
display a "broken image" icon. This function never returns \code{NULL},
7
it always returns a valid \verb{\link{GtkImage}} widget.}
7
it always returns a valid \code{\link{GtkImage}} widget.}
8
8
\usage{gtkImageNewFromFile(filename, show = TRUE)}
9
\arguments{\item{\verb{filename}}{[character] a filename}}
9
\arguments{\item{\verb{filename}}{a filename}}
10
10
\details{If the file contains an animation, the image will contain an
13
13
If you need to detect failures to load the file, use
14
14
\code{\link{gdkPixbufNewFromFile}} to load the file yourself, then create
15
the \verb{\link{GtkImage}} from the pixbuf. (Or for animations, use
15
the \code{\link{GtkImage}} from the pixbuf. (Or for animations, use
16
16
\code{\link{gdkPixbufAnimationNewFromFile}}).
18
18
The storage type (\code{\link{gtkImageGetStorageType}}) of the returned
19
19
image is not defined, it will be whatever is appropriate for
20
displaying the file. }
21
\value{[\verb{\link{GtkWidget}}] a new \verb{\link{GtkImage}}}
21
\value{[\code{\link{GtkWidget}}] a new \code{\link{GtkImage}}}
22
22
\author{Derived by RGtkGen from GTK+ documentation}