Table of Contents

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 IImageProcessingContext

The current image processing context.

radius int

The radius of the area to find the median for.

preserveAlpha bool

Whether the filter is applied to alpha as well as the color channels.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

radius int

The radius of the area to find the median for.

preserveAlpha bool

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

IImageProcessingContext

The IImageProcessingContext.