SceneMorphologyPrimitive Class
A primitive that makes the shapes of its input thinner or thicker: feMorphology of SVG.
public sealed class SceneMorphologyPrimitive : SceneFilterPrimitiveRemarks
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
SceneFilterPrimitiveSceneMorphologyPrimitive
Constructors
| Name | Description |
|---|---|
| SceneMorphologyPrimitive(SceneMorphologyOperator, double, double) | Initializes a new instance of the SceneMorphologyPrimitive class. |
SceneMorphologyPrimitive(SceneMorphologyOperator, double, double)
SceneMorphologyPrimitive.csInitializes a new instance of the SceneMorphologyPrimitive class.
public SceneMorphologyPrimitive(SceneMorphologyOperator @operator, double radiusX, double radiusY)Parameters
operatorSceneMorphologyOperator- Whether the shapes get thinner or thicker.
radiusXdouble- The radius along x:
radius. 0 leaves that axis as it is. radiusYdouble- The radius along y. 0 leaves that axis as it is.
Exceptions
ArgumentOutOfRangeExceptionoperatoris not defined, or a radius is negative.ArgumentException- A radius is not a finite number.
Properties
| Name | Description |
|---|---|
| Input | Gets the input: in. |
| Operator | Gets whether the shapes get thinner or thicker. |
| RadiusX | Gets the radius along x. |
| RadiusY | Gets the radius along y. |
Operator
SceneMorphologyPrimitive.csGets whether the shapes get thinner or thicker.
public SceneMorphologyOperator Operator { get; }