Class GaussianBlurExtensions
Defines Gaussian blurring extensions to apply on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class GaussianBlurExtensions
Methods
| Edit this page View SourceGaussianBlur(IImageProcessingContext)
Applies a Gaussian blur to the image.
Declaration
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
GaussianBlur(IImageProcessingContext, float)
Applies a Gaussian blur to the image.
Declaration
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| float | sigma | The 'sigma' value representing the weight of the blur. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
GaussianBlur(IImageProcessingContext, float, Rectangle)
Applies a Gaussian blur to the image.
Declaration
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma, Rectangle rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| float | sigma | The 'sigma' value representing the weight of the blur. |
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
GaussianBlur(IImageProcessingContext, float, Rectangle, BorderWrappingMode, BorderWrappingMode)
Applies a Gaussian blur to the image.
Declaration
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma, Rectangle rectangle, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| float | sigma | The 'sigma' value representing the weight of the blur. |
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
| BorderWrappingMode | borderWrapModeX | The BorderWrappingMode to use when mapping the pixels outside of the border, in X direction. |
| BorderWrappingMode | borderWrapModeY | The BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |