FilterPrimitive Class

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

public abstract class FilterPrimitive

Remarks

A primitive computes an image from its inputs (the drawing, its alpha, or the results of earlier primitives) in its FilterPrimitive.Subregion, and nothing outside it. Its lengths are lengths of the drawing.

Properties

NameDescription
ColorSpaceGets the colors the primitive computes with. Defaults to FilterColorSpace.LinearRgb, as in SVG.
SubregionGets the rectangle of the drawing the primitive computes its result in, or null (the default) for the union of the subregions of its inputs, or the region of the filter when one of its inputs is the drawing or its alpha, or when it has no input (x, y, width and height of SVG).

Gets the colors the primitive computes with. Defaults to FilterColorSpace.LinearRgb, as in SVG.

public FilterColorSpace ColorSpace { get; init; }

Property value

FilterColorSpace

Exceptions

ArgumentOutOfRangeException
The value is not a defined FilterColorSpace.

Gets the rectangle of the drawing the primitive computes its result in, or null (the default) for the union of the subregions of its inputs, or the region of the filter when one of its inputs is the drawing or its alpha, or when it has no input (x, y, width and height of SVG).

public RectangleD? Subregion { get; init; }

Property value

RectangleD?

Exceptions

ArgumentException
A coordinate is not a finite number.
ArgumentOutOfRangeException
The magnitude of a coordinate exceeds 16777216.