GaussianBlurPrimitive Class
A primitive that blurs its input: feGaussianBlur of SVG.
public sealed class GaussianBlurPrimitive : FilterPrimitiveRemarks
The blur is the one of BlurFilter, with a standard deviation per axis. What it reads beyond the subregion of its input is given by GaussianBlurPrimitive.EdgeMode, relative to that subregion: transparent (none, the default), the nearest pixel (duplicate), the pixel of the opposite side (wrap), or the mirrored pixel.
- Inheritance
FilterPrimitiveGaussianBlurPrimitive
Constructors
| Name | Description |
|---|---|
| GaussianBlurPrimitive(double) | Initializes a new instance of the GaussianBlurPrimitive class with the same standard deviation along both axes. |
| GaussianBlurPrimitive(double, double) | Initializes a new instance of the GaussianBlurPrimitive class with a standard deviation per axis: stdDeviation. |
GaussianBlurPrimitive overloads
GaussianBlurPrimitive(double)
GaussianBlurPrimitive.csInitializes a new instance of the GaussianBlurPrimitive class with the same standard deviation along both axes.
public GaussianBlurPrimitive(double sigma)Parameters
sigmadouble- The standard deviation, in units of the drawing. Must be between 0 and 10000.
Exceptions
ArgumentExceptionsigmais not a finite number.ArgumentOutOfRangeExceptionsigmais negative or exceeds 10000.
GaussianBlurPrimitive(double, double)
GaussianBlurPrimitive.csInitializes a new instance of the GaussianBlurPrimitive class with a standard deviation per axis: stdDeviation.
Parameters
sigmaXdouble- The standard deviation along x, in units of the drawing. Must be between 0 and 10000.
sigmaYdouble- The standard deviation along y, in units of the drawing. Must be between 0 and 10000.
Exceptions
ArgumentException- A standard deviation is not a finite number.
ArgumentOutOfRangeException- A standard deviation is negative or exceeds 10000.
Properties
| Name | Description |
|---|---|
| EdgeMode | Gets what the blur reads beyond the subregion of its input: edgeMode. Defaults to FilterEdgeMode.Transparent. |
| Input | Gets the input: in. |
| SigmaX | Gets the standard deviation along x. |
| SigmaY | Gets the standard deviation along y. |
EdgeMode
GaussianBlurPrimitive.csGets what the blur reads beyond the subregion of its input: edgeMode. Defaults to FilterEdgeMode.Transparent.
public FilterEdgeMode EdgeMode { get; init; }