Class GaussianBlurExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines Gaussian blurring extensions to apply on an Image using Mutate/Clone.
public static class GaussianBlurExtensions
- Inheritance
-
GaussianBlurExtensions
- Inherited Members
Methods
GaussianBlur(IImageProcessingContext)
Applies a Gaussian blur to the image.
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source)
Parameters
source
IImageProcessingContextThe current image processing context.
Returns
GaussianBlur(IImageProcessingContext, float)
Applies a Gaussian blur to the image.
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma)
Parameters
source
IImageProcessingContextThe current image processing context.
sigma
floatThe 'sigma' value representing the weight of the blur.
Returns
GaussianBlur(IImageProcessingContext, float, Rectangle)
Applies a Gaussian blur to the image.
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
sigma
floatThe 'sigma' value representing the weight of the blur.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
GaussianBlur(IImageProcessingContext, float, Rectangle, BorderWrappingMode, BorderWrappingMode)
Applies a Gaussian blur to the image.
public static IImageProcessingContext GaussianBlur(this IImageProcessingContext source, float sigma, Rectangle rectangle, BorderWrappingMode borderWrapModeX, BorderWrappingMode borderWrapModeY)
Parameters
source
IImageProcessingContextThe current image processing context.
sigma
floatThe 'sigma' value representing the weight of the blur.
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.