SceneFilterPrimitive Class
A primitive of a SceneFilterGraph: an element fe* of an SVG filter.
public abstract class SceneFilterPrimitiveRemarks
A primitive computes an image from its inputs (the drawing of the element, its alpha, or the results of earlier primitives) in its SceneFilterPrimitive.Subregion, and nothing outside it. Its lengths and positions are in the coordinates of the parent of the element, as the region of the graph.
Properties
| Name | Description |
|---|---|
| ColorSpace | Gets the colors the primitive computes with. The default is SceneFilterColorSpace.LinearRgb, as in SVG. |
| Subregion | Gets the rectangle the primitive computes its result in (the x, y, width and height of SVG), or null (the default) for the union of the subregions of its inputs, or the region of the graph when one of its inputs is the drawing of the element or its alpha, or when it has no input. |
ColorSpace
SceneFilterPrimitive.csGets the colors the primitive computes with. The default is SceneFilterColorSpace.LinearRgb, as in SVG.
public SceneFilterColorSpace ColorSpace { get; init; }Property value
Exceptions
ArgumentOutOfRangeException- The value is not a defined
SceneFilterColorSpace.
Subregion
SceneFilterPrimitive.csGets the rectangle the primitive computes its result in (the x, y, width and height of SVG), or null (the default) for the union of the subregions of its inputs, or the region of the graph when one of its inputs is the drawing of the element or its alpha, or when it has no input.
public SceneBounds? Subregion { get; init; }Property value
Exceptions
ArgumentException- A coordinate is not a finite number.
ArgumentOutOfRangeException- The width or the height is negative.