Class GaussianBlurFilter
A filter to apply Gaussian blur to an image.
Inheritance
System.Object
GaussianBlurFilter
Implements
Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public class GaussianBlurFilter : Object, IImageFilter
Constructors
GaussianBlurFilter()
Initializes a new instance of the GaussianBlurFilter class.
Declaration
public GaussianBlurFilter()
GaussianBlurFilter(Int32, Int32, Single)
Initializes a new instance of the GaussianBlurFilter class.
Declaration
public GaussianBlurFilter(int kernelWidth, int kernelHeight, float sigma)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | kernelWidth | Width of the kernel to apply Gaussian blur. |
System.Int32 | kernelHeight | Height of the kernel to apply Gaussian blur. |
System.Single | sigma | The 'Sigma' value representing the weight of the blur. |
GaussianBlurFilter(Single)
Initializes a new instance of the GaussianBlurFilter class.
Declaration
public GaussianBlurFilter(float sigma)
Parameters
Type | Name | Description |
---|---|---|
System.Single | sigma | The 'Sigma' value representing the weight of the blur. |
Properties
KernelHeight
Height of the kernel to apply Gaussian blur. Must be an odd value greater than 0. Default = 3.
Declaration
public int KernelHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
KernelWidth
Width of the kernel to apply Gaussian blur. Must be an odd value greater than 0. Default = 3.
Declaration
public int KernelWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Sigma
The 'Sigma' value representing the weight of the blur. Default = 3.0f.
Declaration
public float Sigma { get; set; }
Property Value
Type | Description |
---|---|
System.Single |