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, 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.
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
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.
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.