Class BoxBlurExtensions
Defines extensions methods to apply box blurring to an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class BoxBlurExtensions
Methods
| Edit this page View SourceBoxBlur(IImageProcessingContext)
Applies a box blur to the image.
Declaration
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
BoxBlur(IImageProcessingContext, int)
Applies a box blur to the image.
Declaration
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
int | radius | The 'radius' value representing the size of the area to sample. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
BoxBlur(IImageProcessingContext, int, Rectangle)
Applies a box blur to the image.
Declaration
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
int | radius | 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
Type | Description |
---|---|
IImageProcessingContext |
BoxBlur(IImageProcessingContext, int, Rectangle, BorderWrappingMode, BorderWrappingMode)
Applies a box blur to the image.
Declaration
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius, Rectangle rectangle, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
int | radius | 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. |
BorderWrappingMode | borderWrapModeX | The BorderWrappingMode to use when mapping the pixels outside of the border, in X direction. |
BorderWrappingMode | borderWrapModeY | The BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction. |
Returns
Type | Description |
---|---|
IImageProcessingContext |