Table of Contents

Class PdnOutlineEffect.Props

Namespace
PaintDotNet.Effects.Gpu
Assembly
PaintDotNet.Effects.Gpu.dll
public sealed class PdnOutlineEffect.Props : CustomEffectProperties
Inheritance
PdnOutlineEffect.Props
Inherited Members

Constructors

Props()

Properties

AlphaMode

Specifies the alpha mode for the input and output.
The default value is Premultiplied.

EdgeMode

Specifies how sampling beyond the edge of the image should be performed.
The default value is Transparent.

Input
Intensity

The intensity of the effect. This indirectly specifies the range of percentiles used to drive the underlying median approximation algorithm. An intensity value of 0.5f will render the difference between percentiles of 0.25 and 0.75. To calculate the range, use:
percentileLo = (1 - intensity) / 2
percentileHi = (1 + intensity) / 2
The range is [0, 1]. 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, 70]. The default value is 3.

Methods

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