GaussianBlurPrimitive Class

A primitive that blurs its input: feGaussianBlur of SVG.

public sealed class GaussianBlurPrimitive : FilterPrimitive

Remarks

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
FilterPrimitive GaussianBlurPrimitive

Constructors

NameDescription
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.cs

Initializes a new instance of the GaussianBlurPrimitive class with the same standard deviation along both axes.

public GaussianBlurPrimitive(double sigma)
Parameters
sigma double
The standard deviation, in units of the drawing. Must be between 0 and 10000.
Exceptions
ArgumentException
sigma is not a finite number.
ArgumentOutOfRangeException
sigma is negative or exceeds 10000.

GaussianBlurPrimitive(double, double)

GaussianBlurPrimitive.cs

Initializes a new instance of the GaussianBlurPrimitive class with a standard deviation per axis: stdDeviation.

public GaussianBlurPrimitive(double sigmaX, double sigmaY)
Parameters
sigmaX double
The standard deviation along x, in units of the drawing. Must be between 0 and 10000.
sigmaY double
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

NameDescription
EdgeModeGets what the blur reads beyond the subregion of its input: edgeMode. Defaults to FilterEdgeMode.Transparent.
InputGets the input: in.
SigmaXGets the standard deviation along x.
SigmaYGets the standard deviation along y.

Gets what the blur reads beyond the subregion of its input: edgeMode. Defaults to FilterEdgeMode.Transparent.

public FilterEdgeMode EdgeMode { get; init; }

Property value

FilterEdgeMode

Exceptions

ArgumentOutOfRangeException
The value is not a defined FilterEdgeMode.

Gets the input: in.

public FilterInput Input { get; init; }

Property value

FilterInput

Gets the standard deviation along x.

public double SigmaX { get; }

Property value

double

Gets the standard deviation along y.

public double SigmaY { get; }

Property value

double