Table of Contents

Class BoxBlurExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions methods to apply box blurring to an Image using Mutate/Clone.

public static class BoxBlurExtensions
Inheritance
BoxBlurExtensions
Inherited Members

Methods

BoxBlur(IImageProcessingContext)

Applies a box blur to the image.

public static IImageProcessingContext BoxBlur(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

BoxBlur(IImageProcessingContext, int)

Applies a box blur to the image.

public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius)

Parameters

source IImageProcessingContext

The current image processing context.

radius int

The 'radius' value representing the size of the area to sample.

Returns

IImageProcessingContext

The IImageProcessingContext.

BoxBlur(IImageProcessingContext, int, Rectangle)

Applies a box blur to the image.

public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

radius int

The 'radius' value representing the size of the area to sample.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

BoxBlur(IImageProcessingContext, int, Rectangle, BorderWrappingMode, BorderWrappingMode)

Applies a box blur to the image.

public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius, Rectangle rectangle, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)

Parameters

source IImageProcessingContext

The current image processing context.

radius int

The 'radius' value representing the size of the area to sample.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

borderWrapModeX BorderWrappingMode

The BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.

borderWrapModeY BorderWrappingMode

The BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.

Returns

IImageProcessingContext

The IImageProcessingContext.