Table of Contents

Class ChromaKeyEffect.Props

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

Constructors

Props()

Properties

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).

Color

This property indicates the color that should be converted to alpha. The default color is black.

Feather

A boolean value specifying whether the edges of the output should be softened in the alpha channel. When set to false, the alpha output by the effect is 1-bit: either fully opaque or fully transparent. Setting to true results in a softening of edges in the alpha channel of the Chroma Key output. The default value is false.

Input
InvertAlpha

A boolean value indicating whether the alpha values should be inverted. The default value is false.

Tolerance

This property is a float value indicating the tolerance for matching the color specified in the Color property. The range is [ 0.0f, 1.0f ] and the default value is 0.1f.