Class MedianBlurExtensions
Defines extensions that allow the applying of the median blur on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class MedianBlurExtensions
Methods
| Edit this page View SourceMedianBlur(IImageProcessingContext, int, bool)
Applies a median blur on the image.
Declaration
public static IImageProcessingContext MedianBlur(this IImageProcessingContext source, int radius, bool preserveAlpha)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| int | radius | The radius of the area to find the median for. |
| bool | preserveAlpha | Whether the filter is applied to alpha as well as the color channels. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
MedianBlur(IImageProcessingContext, int, bool, Rectangle)
Applies a median blur on the image.
Declaration
public static IImageProcessingContext MedianBlur(this IImageProcessingContext source, int radius, bool preserveAlpha, Rectangle rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| int | radius | The radius of the area to find the median for. |
| bool | preserveAlpha | Whether the filter is applied to alpha as well as the color channels. |
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |