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