feMorphology {gridSVG}R Documentation

"Fatten" or "thin" artwork.

Description

This filter primitive performs "fattening" or "thinning" of artwork. It is particularly useful for fattening or thinning an alpha channel.

Usage

feMorphology(input = NA, operator = c("erode", "dilate"),
             radius = unit(0, "npc"), default.units = "npc", ...)

Arguments

input

Identifies an input for this filter primtive. See filterInputs.

operator

A keyword indicating whether to erode (i.e., thin) or dilate (fatten) the source graphic, input.

radius

The radius (or radii) for the operation. If two values are provided, the first value represents a x-radius and the second value represents a y-radius. If one radius is provided, then that value is used for both xand y.

default.units

A string indicating the default units to use if radius is only given as a numeric vector.

...

Further arguments to be passed onto fe.

Details

For more information about this primitive, consult the reference to the SVG specification.

Value

An fe.morphology object.

Author(s)

Simon Potter

References

https://www.w3.org/TR/SVG/filters.html#feMorphologyElement

See Also

filterEffect, fe.


[Package gridSVG version 1.7-5 Index]