FilterPrimitive Class
A primitive of a FilterGraph: an element fe* of an SVG filter.
public abstract class FilterPrimitiveRemarks
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
| Name | Description |
|---|---|
| ColorSpace | Gets the colors the primitive computes with. Defaults to FilterColorSpace.LinearRgb, as in SVG. |
| Subregion | 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). |
ColorSpace
FilterPrimitive.csGets the colors the primitive computes with. Defaults to FilterColorSpace.LinearRgb, as in SVG.
public FilterColorSpace ColorSpace { get; init; }Subregion
FilterPrimitive.csGets 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
Exceptions
ArgumentException- A coordinate is not a finite number.
ArgumentOutOfRangeException- The magnitude of a coordinate exceeds 16777216.