HypernovaDesktop Components · docs
Binarymission
WPFShaders Library › NegativeToPositiveEffect

NegativeToPositiveEffect

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Shaders.Library.CustomEffects

A pixel shader effect that inverts its input, turning a negative image into a positive one.

public class NegativeToPositiveEffect : ShaderEffect

Inherits from / implements: ShaderEffect

Members at a glance

NegativeToPositiveEffectInitializes a new instance of the NegativeToPositiveEffect class.
InputThe 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.
InputPropertyIdentifies the Input dependency property.

Constructors

NegativeToPositiveEffect

public NegativeToPositiveEffect()

Initializes a new instance of the NegativeToPositiveEffect class.

Properties

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

InputProperty

public static readonly DependencyProperty InputProperty

Identifies the Input dependency property.