Table of Contents

Class EdgeDetectionEffect.Props

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll
public sealed class EdgeDetectionEffect.Props : DeviceEffectProperties
Inheritance
EdgeDetectionEffect.Props
Inherited Members

Constructors

Props()

Properties

AlphaMode

Indicates the alpha mode of the input image. If the input is not opaque, this value is used to determine whether to unpremultiply the inputs. The default value is Premultiplied.

BlurRadius

A float value specifying the amount of blur to apply. Applying blur is used to remove high frequencies and reduce phantom edges. The allowed range is 0.0 to 10.0. The default value is 0.0 (no blur applied).

ClassID

Implemented by the derived class to specify the effect's class ID (CLSID) when registering and creating the effect and for binding to an IDeviceEffectProperties.
Note that this is different than the ID property accessor, which queries the IDeviceEffectProperties for the actual runtime effect class ID.
Overriding this property is only necessary in advanced scenarios, such as when wrapping an existing effect (e.g. built-in Direct2D effects), or when working with CustomEffects that have their own generic type arguments (e.g. PixelShaderEffect).

Input
Mode

An enumeration value specifying which mode to use for edge detection. The default value is Sobel.

OverlayEdges

Edge detection only applies to the RGB channels, the alpha channel is ignored for purposes of detecting edges.
When set to false, the output is fully opaque.
If set to true, the input opacity is preserved.
The default value is false.

Strength

A float value modulating the response of the edge detection filter. A low strength value means that weaker edges will get filtered out, while a high value means stronger edges will get filtered out. The allowed range is 0.0 to 1.0. The default value is 0.5.