FilterEffect

class FilterEffect(val primitives: List<FilterPrimitive>, val region: Rectangle? = Rectangle(-0.1, -0.1, 1.2, 1.2), val regionUnits: PaintUnits = PaintUnits.BOUNDS, val primitiveUnits: PaintUnits = PaintUnits.OBJECT, val id: String = "")(source)

A filter effect, like SVG's filter element: primitives applied in order to what a node draws, in region: in the coordinates of regionUnits, or everywhere when the region is null. Lengths of primitives are in user space, or in fractions of the bounds of the node when primitiveUnits is PaintUnits.BOUNDS.

Constructors

Link copied to clipboard
constructor(primitives: List<FilterPrimitive>, region: Rectangle? = Rectangle(-0.1, -0.1, 1.2, 1.2), regionUnits: PaintUnits = PaintUnits.BOUNDS, primitiveUnits: PaintUnits = PaintUnits.OBJECT, id: String = "")

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: Rectangle?
Link copied to clipboard
Link copied to clipboard

the id of the filter in SVG documents: id, or an id derived from the filter when it has none