Table of Contents

Class DiscreteTransferEffect.Props

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

Constructors

Props()

Properties

AlphaDisable

If you set this to true the effect does not apply the transfer function to the Alpha channel. If you set this to false the effect applies the AlphaDiscreteTransfer function to the Alpha channel.
The default value is false.

AlphaTable

The list of values that define the transfer function for the Alpha channel.
The default values are { 0, 1 }.

BlueDisable

If you set this to true the effect does not apply the transfer function to the Blue channel. If you set this to false the effect applies the BlueDiscreteTransfer function to the Blue channel.
The default value is false.

BlueTable

The list of values that define the transfer function for the Blue channel.
The default values are { 0, 1 }.

ClampOutput

Whether the effect clamps color values to between 0 and 1 before the effect passes the values to the next effect in the graph. The effect clamps the values before it premultiplies the alpha.
If you set this to true the effect will clamp the values.
If you set this to false, the effect will not clamp the color values, but other effects and the output surface may clamp the values if they are not of high enough precision.
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).

GreenDisable

If you set this to true the effect does not apply the transfer function to the Green channel. If you set this to false the effect applies the GreenDiscreteTransfer function to the Green channel.
The default value is false.

GreenTable

The list of values that define the transfer function for the Green channel.
The default values are { 0, 1 }.

Input
RedDisable

If you set this to true the effect does not apply the transfer function to the Red channel. If you set this to false the effect applies the RedDiscreteTransfer function to the Red channel.
The default value is false.

RedTable

The list of values used to define the transfer function for the Red channel.
The default values are { 0, 1 }.