Class GaussianBlur
Built in GaussianBlur effect.
public class GaussianBlur : Effect
- Inheritance
-
GaussianBlur
- Inherited Members
Constructors
GaussianBlur(DeviceContext)
Initializes a new instance of GaussianBlur effect.
public GaussianBlur(DeviceContext context)
Parameters
context
DeviceContext
Properties
BorderMode
The mode used to calculate the border of the image, soft or hard. See BorderMode modes for more info.
public BorderMode BorderMode { get; set; }
Property Value
Optimization
The optimization mode. See GaussianBlurOptimization modes for more info.
public GaussianBlurOptimization Optimization { get; set; }
Property Value
Remarks
Default value is Balanced.
StandardDeviation
Gets or sets the amount of blur to be applied to the image. Default: 1.0f
public float StandardDeviation { get; set; }
Property Value
Remarks
You can compute the blur radius of the kernel by multiplying the standard deviation by 3. The units of both the standard deviation and blur radius are DIPs. A value of zero DIPs disables this effect entirely.