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
IImageProcessingContextThe current image processing context.
Returns
BoxBlur(IImageProcessingContext, int)
Applies a box blur to the image.
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius)
Parameters
source
IImageProcessingContextThe current image processing context.
radius
intThe 'radius' value representing the size of the area to sample.
Returns
BoxBlur(IImageProcessingContext, int, Rectangle)
Applies a box blur to the image.
public static IImageProcessingContext BoxBlur(this IImageProcessingContext source, int radius, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
radius
intThe 'radius' value representing the size of the area to sample.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
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
IImageProcessingContextThe current image processing context.
radius
intThe 'radius' value representing the size of the area to sample.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
borderWrapModeX
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in X direction.
borderWrapModeY
BorderWrappingModeThe BorderWrappingMode to use when mapping the pixels outside of the border, in Y direction.