Rev 81278 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grDevices/man/dev.capabilities.Rd% Part of the R package, https://www.R-project.org% Copyright 2008-12 R Core Team% Distributed under GPL 2 or later\name{dev.capabilities}\alias{dev.capabilities}\title{Query Capabilities of the Current Graphics Device}\description{Query the capabilities of the current graphics device.}\usage{dev.capabilities(what = NULL)}\arguments{\item{what}{a character vector partially matching the names of thecomponents listed in section \sQuote{Value}, or \code{NULL} whichlists all available capabilities.}}\details{The capabilities have to be specified by the author of the graphicsdevice, unless they can be deduced from missing hooks. Thus they willoften by returned as \code{NA}, and may reflect the maximalcapabilities of the underlying device where several output formats aresupported by one device.Most recent devices support semi-transparent colours provided thegraphics format does (which PostScript does not). On the other hand,relatively few graphics formats support (fully or semi-) transparentbackgrounds: generally the latter is found only in PDF and PNG plots.}\value{A named list with some or all of the following components, any of which maytake value \code{NA}:\item{semiTransparency}{logical: Does the device supportsemi-transparent colours?}\item{transparentBackground}{character: Does the device support(semi)-transparent backgrounds? Possible values are \code{"no"},\code{"fully"} (only full transparency) and \code{"semi"}(semi-transparent background colours are supported).}\item{rasterImage}{character: To what extent does the device supportraster images as used by \code{\link{rasterImage}} and\code{\link{grid.raster}}? Possible values \code{"no"}, \code{"yes"} and\code{"non-missing"} (support only for arrays without any missingvalues).}\item{capture}{logical: Does the current devicesupport raster capture as used by \code{\link{grid.cap}}?}\item{locator}{logical: Does the current devicesupport \code{\link{locator}} and \code{\link{identify}}?}\item{events}{character: Which events can be generated on this device?Currently this will be a subset of \code{c("MouseDown","MouseMove", "MouseUp", "Keybd")}, but other events may besupported in the future. }\item{patterns}{character: Does the device support pattern fills?One or more of\code{c("LinearGradient", "RadialGradient", "TilingPattern")}May also be \code{FALSE}.}\item{clippingPaths}{logical: Does the device support clippingpaths?}\item{masks}{character: Does the device support masks?One or more of\code{c("alpha", "luminance")}May also be \code{FALSE}.}\item{compositing}{character: Does the device support compositingoperators?There are many possible operators and devices may support anysubset. For example the \code{\link{pdf}} device supportsa set of \dQuote{blend modes} whereas Cairo-based devicessupport Porter-Duff operators as well.May also be \code{FALSE}.}\item{transformations}{logical: Does the devices support affinetransformations ?}\item{paths}{logical: Does the device support stroking and fillingpaths?}}\seealso{See \code{\link{getGraphicsEvent}} for details on interactive events.}\examples{dev.capabilities()}\keyword{ dplot }