Table of Contents

Class MedianBlurEffect.Props

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Framework.dll
public sealed class MedianBlurEffect.Props : CustomEffectProperties
Inheritance
MedianBlurEffect.Props
Inherited Members

Constructors

Props()

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.

Input
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. The current implementation will also have better performance when using an even number for this property value.

The range is [1,12]. The default value is 8, which produces 8-bits of precision and is appropriate for most images.

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.

Methods

CreateImpl()
GetAuthor()
GetCategory()
GetDescription()
GetDisplayName()