WPF › Shaders Library › PositiveEffect
PositiveEffect
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Shaders.Library.CustomEffects
A pixel shader effect that tints its input with a settable color filter. With the default filter, white, the image is shown unchanged.
public class PositiveEffect : ShaderEffect
Inherits from / implements: ShaderEffect
Members at a glance
PositiveEffect | Initializes a new instance of the PositiveEffect class. |
ColorFilter | The color the image is tinted with: each color channel of the image is multiplied by the matching channel of this color. The default is White, which leaves the image unchanged. |
Input | The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush. |
ColorFilterProperty | Identifies the ColorFilter dependency property. |
InputProperty | Identifies the Input dependency property. |
Constructors
PositiveEffect
public PositiveEffect()
Initializes a new instance of the PositiveEffect class.
Properties
ColorFilter
public Color ColorFilter
The color the image is tinted with: each color channel of the image is multiplied by the matching channel of this color. The default is White, which leaves the image unchanged.
Input
public Brush Input
The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush.
Fields
ColorFilterProperty
public static readonly DependencyProperty ColorFilterProperty
Identifies the ColorFilter dependency property.
InputProperty
public static readonly DependencyProperty InputProperty
Identifies the Input dependency property.