Rev 6155 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{dev2bitmap}\alias{dev2bitmap}\title{Copy Graphics Device to Bitmap File}\usage{dev2bitmap(file, type="png256", height=6, width=6, res=72,pointsize, ...)}\arguments{\item{file}{The putput file name, with an appropriate extension.}\item{type}{The type of bitmap. the default is \code{"png256"}.}\item{height}{The plot height, in inches.}\item{width}{The plot width, in inches.}\item{res}{Resolution, in dots per inch.}\item{pointsize}{The pointsize to be used for text: defaults tosomething reasonable given the width and height}\item{\dots}{Other parameters passes to \code{\link{postscript}}.}}\description{Copy the current graphics device to a file in a bitmap graphics format.}\details{\code{dev2bitmap} works by copying the current device to a\code{\link{postscript}} device, and post-processing the output fileusing \code{ghostscript}. You will need a recent version of\code{ghostscript} (5.10 and later have been tested): the full path to theexecutable can be set by the environment variable \code{"R_GSCMD"}.The types available will depend on the version of \code{ghostscript},but are likely to include\code{"pcxmono", "pcxgray", "pcx16", "pcx256", "pcx24b", "pcxcmyk","pbm", "pbmraw", "pgm", "pgmraw","pgnm", "pgnmraw", "pnm", "pnmraw", "ppm", "ppmraw", "pkm","pkmraw", "tiffcrle", "tiffg3", "tiffg32d", "tiffg4", "tifflzw","tiffpack", "tiff12nc", "tiff24nc", "psmono", "psgray", "psrgb","bit", "bitrgb", "bitcmyk", "pngmono", "pnggray","png16", "png256", "png16m", "jpeg", "jpeggray", "pdfwrite"}}\value{None.}\author{B. D. Ripley}\section{WARNING}{This is experimental and may be withdrawn in favour ofan equivalent device in a later version.}\seealso{\code{\link{postscript}}}\keyword{utilities}