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
| Improve this Doc 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 image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
BoxBlur(IImageProcessingContext, Int32)
Applies a box blur to the image.
Declaration
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Int32 | radius | The 'radius' value representing the size of the area to sample. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
BoxBlur(IImageProcessingContext, Int32, 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 image this method extends. |
Int32 | 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 | The IImageProcessingContext to allow chaining of operations. |