Learn R Programming

gridSVG (version 1.5-0)

feDisplacementMap: Displace pixel values from a filter input.

Description

This filter primitive uses the pixels values from the image from input2 to spatially displace the image from input1.

Usage

feDisplacementMap(input1 = NA, input2 = NA, scale = 0, xChannelSelector = c("A", "R", "G", "B"), yChannelSelector = c("A", "R", "G", "B"), ...)

Arguments

input1
Identifies an input for this filter primtive. See filterInputs.
input2
Identfies a second input for this filter primitive. See filterInputs.
scale
Displacement scale factor. The amount is expressed in the coordinate system established by attribute primitiveUnits on the parent filter container. When the value of scale is 0, this operation has no effect on the source image.
xChannelSelector
Indicates which channel from input2 to use to displace the pixels in input along the x-axis.
yChannelSelector
Indicates which channel from input2 to use to displace the pixels in input along the y-axis.
...
Further arguments to be passed onto fe.

Value

An fe.displacement.map object.

Details

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

References

http://www.w3.org/TR/SVG/filters.html#feDisplacementMapElement

See Also

filterEffect, fe.