SceneMorphologyPrimitive Class

A primitive that makes the shapes of its input thinner or thicker: feMorphology of SVG.

public sealed class SceneMorphologyPrimitive : SceneFilterPrimitive

Remarks

Each component of a pixel, the colors multiplied by their alpha, is the smallest or the largest one on the rectangle of the radii around it.

Inheritance
SceneFilterPrimitive SceneMorphologyPrimitive

Constructors

NameDescription
SceneMorphologyPrimitive(SceneMorphologyOperator, double, double)Initializes a new instance of the SceneMorphologyPrimitive class.

SceneMorphologyPrimitive(SceneMorphologyOperator, double, double)

SceneMorphologyPrimitive.cs

Initializes a new instance of the SceneMorphologyPrimitive class.

public SceneMorphologyPrimitive(SceneMorphologyOperator @operator, double radiusX, double radiusY)

Parameters

operator SceneMorphologyOperator
Whether the shapes get thinner or thicker.
radiusX double
The radius along x: radius. 0 leaves that axis as it is.
radiusY double
The radius along y. 0 leaves that axis as it is.

Exceptions

ArgumentOutOfRangeException
operator is not defined, or a radius is negative.
ArgumentException
A radius is not a finite number.

Properties

NameDescription
InputGets the input: in.
OperatorGets whether the shapes get thinner or thicker.
RadiusXGets the radius along x.
RadiusYGets the radius along y.

Gets the input: in.

public SceneFilterInput Input { get; init; }

Property value

SceneFilterInput

Gets whether the shapes get thinner or thicker.

public SceneMorphologyOperator Operator { get; }

Gets the radius along x.

public double RadiusX { get; }

Property value

double

Gets the radius along y.

public double RadiusY { get; }

Property value

double