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