Class MedianBlurExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines extensions that allow the applying of the median blur on an Image using Mutate/Clone.
public static class MedianBlurExtensions
- Inheritance
-
MedianBlurExtensions
- Inherited Members
Methods
MedianBlur(IImageProcessingContext, int, bool)
Applies a median blur on the image.
public static IImageProcessingContext MedianBlur(this IImageProcessingContext source, int radius, bool preserveAlpha)
Parameters
source
IImageProcessingContextThe current image processing context.
radius
intThe radius of the area to find the median for.
preserveAlpha
boolWhether the filter is applied to alpha as well as the color channels.
Returns
MedianBlur(IImageProcessingContext, int, bool, Rectangle)
Applies a median blur on the image.
public static IImageProcessingContext MedianBlur(this IImageProcessingContext source, int radius, bool preserveAlpha, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
radius
intThe radius of the area to find the median for.
preserveAlpha
boolWhether the filter is applied to alpha as well as the color channels.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.