Class MedianBlurEffect.Props
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
public sealed class MedianBlurEffect.Props : CustomEffectProperties
- Inheritance
-
MedianBlurEffect.Props
- Inherited Members
Constructors
Properties
- AlphaMode
Specifies the alpha mode for the input and output.
The default value is Premultiplied.
- DynamicRange
Specifies how the dynamic range for each pixel is calculated. See MedianBlurDynamicRange for more information.
The default value is Auto.
- EdgeMode
Specifies how sampling beyond the edge of the image should be performed.
If this value is Transparent, the effect pads the image with transparent pixels as it applies the kernel, resulting in a soft edge. The output will be larger than the input by approximately the blur radius, in pixels.
If set to another edge mode, the effect clamps the output to the size of the input image.
The default value is Transparent.
- Percentile
Specifies the percentile to find when approximating the median. Lower values result in darkened/eroded results, while higher values result in brightened/dilated results.
The range is [0,1] which correspond's to the UI's range of [0, 100]. The default value is 0.5f.
- PrecisionBits
Specifies how many bits of precision are generated from the median approximation algorithm.
Higher values will have lower performance. Execution time scales linearly with this property's value.
The range is [1, 32]. The default value is 8 which produces 8-bits of precision and is suitable for source images that use 8 bits-per-component (e.g. BGRA32). Using a quality value of 9 in that case will take 12.5% more time to render and will only produce some pixels that are +/-1 delta from using quality=8 (e.g. R=191 instead of R=192, or G=67 instead of G=66).
When precision is critical, this property should be set to the bit-depth of the source image, plus 1. However, larger values will cause the pixel shader to take longer to execute and could result in a TDR or crash on slower hardware.
- Radius
The radius of the effect. A value of 0 will disable the effect.
Performance scales with the square of this property value. Doubling the radius will quadruple the rendering time.
The range is [0, 100]. The default value is 10.