SceneFilterPrimitive Class

A primitive of a SceneFilterGraph: an element fe* of an SVG filter.

public abstract class SceneFilterPrimitive

Remarks

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

NameDescription
ColorSpaceGets the colors the primitive computes with. The default is SceneFilterColorSpace.LinearRgb, as in SVG.
SubregionGets 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.

Gets the colors the primitive computes with. The default is SceneFilterColorSpace.LinearRgb, as in SVG.

public SceneFilterColorSpace ColorSpace { get; init; }

Property value

SceneFilterColorSpace

Exceptions

ArgumentOutOfRangeException
The value is not a defined SceneFilterColorSpace.

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.

public SceneBounds? Subregion { get; init; }

Property value

SceneBounds?

Exceptions

ArgumentException
A coordinate is not a finite number.
ArgumentOutOfRangeException
The width or the height is negative.