Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PictureMask-class

Class "PictureMask"


Description

A description of a luminance mask.

Slots

content:

Object of class "list". A list of "PictureContent" objects that are use to define the mask. Typically objects that actually draw content (e.g. a path or a rect).

Extends

Class PictureContent, directly.

Methods

applyTransform

signature(object = "PictureMask", tm = "matrix"): transforms the locations described by contents of the mask object by a 3x3 transformation matrix and returns a "PictureMask" object whose children have had locations transformed by the matrix.

grobify

signature(object = "PictureMask"): creates a mask object for use with the gridSVG package. Not intended to be used directly.

There are three arguments to this grobify method:

defs

An object of class "PictureDefinitions". This object is primarily useful in conjunction with the gridSVG package.

gpFUN

This argument takes a function that takes a gpar object and returns a modified gpar object. The default value is the identity function.

ext

A character vector. See grid.picture for more information on what this extension selection parameter means, in addition to the valid values this argument takes.

Author(s)

Simon Potter


grImport2

Importing 'SVG' Graphics

v0.2-0
GPL (>= 2)
Authors
Simon Potter [aut], Paul Murrell [aut, cre] (<https://orcid.org/0000-0002-3224-8858>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.