[]
In-place effect that applies a Gaussian blur to the image.
public class GaussianBlurEffect : BaseInplaceEffect
Gets or sets the color used to blend with the edge pixels of the image.
The default is transparent black.
.public Color BorderColor { get; set; }
Gets or sets the mapping mode for the pixels outside of the border, in X direction.
public GaussianBlurBorderMode BorderModeX { get; set; }
Gets or sets the mapping mode for the pixels outside of the border, in Y direction.
public GaussianBlurBorderMode BorderModeY { get; set; }
Gets or sets a value indicating whether the effect should be applied in multiple threads to boost performance.
The multi-threaded mode requires 3-4 times more memory for internal operations.
public bool Multithreaded { get; set; }
Gets or sets the radius of the blur, in pixels.
public int Radius { get; set; }
Gets a value indicating whether the effect can be applied to an image with premultiplied alpha channel.
public override bool SupportsPremultiplied { get; }
Applies the Gaussian blur effect to a part of the specified GcBitmap.
protected override void Apply(GcBitmap bitmap, int x, int y, int width, int height)
bitmap
GcBitmapThe target GcBitmap.
x
intThe x-coordinate of the target rectangle, in pixels.
y
intThe y-coordinate of the target rectangle, in pixels.
width
intThe width of the target rectangle, in pixels.
height
intThe height of the target rectangle, in pixels.
Applies the Gaussian blur effect to the specified GcBitmap.
protected override void Apply(GcBitmap bitmap)
Returns an instance of the GaussianBlurEffect class.
public static GaussianBlurEffect Get(Color borderColor, int radius = 9, GaussianBlurBorderMode borderMode = GaussianBlurBorderMode.Default)
borderColor
System.Drawing.ColorThe color used to blend with the edge pixels of the image.
radius
intThe radius of the blur, in pixels.
borderMode
GaussianBlurBorderModeThe mapping mode for the pixels outside of the border.
Returns an instance of the GaussianBlurEffect class.
public static GaussianBlurEffect Get(int radius = 9, GaussianBlurBorderMode borderMode = GaussianBlurBorderMode.Default)
radius
intThe radius of the blur, in pixels.
borderMode
GaussianBlurBorderModeThe mapping mode for the pixels outside of the border.