~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to man/gtkImageNewFromFile.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
11
11
animation.
12
12
  
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}}).
17
17
  
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}}}
 
20
displaying the file.}
 
21
\value{[\code{\link{GtkWidget}}]  a new \code{\link{GtkImage}}}
22
22
\author{Derived by RGtkGen from GTK+ documentation}
23
23
\keyword{internal}