grid.cap

0th

Percentile

Capture a raster image

Capture the current contents of a graphics device as a raster (bitmap) image.

Keywords
dplot
Usage
grid.cap()
Details

This function is only implemented for on-screen graphics devices.

Value

A matrix of R colour names.

See Also

grid.raster

dev.capabilities to see if it is supported.

Aliases
  • grid.cap
Examples
library(grid) ## Not run: # dev.new(width=.5, height=.5) # grid.rect() # grid.text("hi") # cap <- grid.cap() # dev.off() # # grid.raster(cap, width=.5, height=.5, interpolate=FALSE) # ## End(Not run)
Documentation reproduced from package grid, version 3.1.0, License: Part of R 3.1.0

Community examples

Looks like there are no examples yet.