Class MedianBlurExtensions
Defines extensions that allow the applying of the median blur on an Image using Mutate/Clone.
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class MedianBlurExtensions : object
Methods
| Improve this Doc View SourceMedianBlur(IImageProcessingContext, Int32, Boolean)
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. |
Int32 | radius | The radius of the area to find the median for. |
Boolean | preserveAlpha | Whether the filter is applied to alpha as well as the color channels. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
MedianBlur(IImageProcessingContext, Int32, Boolean, 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. |
Int32 | radius | The radius of the area to find the median for. |
Boolean | 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 |