Property BorderMode
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
BorderMode
The mode used to calculate the border of the image.
When set to Soft, the effect pads the image with transparent black pixels as it
applies the blur kernel, resulting in a soft edge. The output will be larger than the input
by approximately StandardDeviation3 pixels (the blur radius) when using the Speed, Balanced,
or Quality optimizations. The output will be larger than the input by approximately
StandardDeviation6 pixels when using the HighQuality optimization.
When set to Hard, the effect clamps the output to the size of the input image.
When the effect applies the blur kernel, it extends the input image with a mirror-type border
transform for samples outside of the input bounds.
The default value is Soft.
public EffectPropertyAccessor<BorderMode> BorderMode { get; }