Table of Contents

Class ContrastEffect.Props

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

Constructors

Props()

Properties

ClampInput

Indicates whether or not to clamp the input to [0.0, 1.0]. The default value is false.

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

Contrast

Specifies the amount by which to adjust the contrast of the image. Negative values reduce contrast, while positive values increase contrast.
The range of this value is [ -1.0f, +1.0f ], and the default value is 0.0f.

Input