WPF › Shaders Library › BandsEffect
BandsEffect
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Shaders.Library.CustomEffects
A pixel shader effect that lays horizontal bands over its input. The density and strength of the banding are settable.
public class BandsEffect : ShaderEffect
Inherits from / implements: ShaderEffect
Members at a glance
BandsEffect | Initializes a new instance of the BandsEffect class. |
BandDensity | The number of verical bands to add to the output. The higher the value the more bands. |
BandIntensity | Intensity of each band. |
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. |
BandDensityProperty | Identifies the BandDensity dependency property. |
BandIntensityProperty | Identifies the BandIntensity dependency property. |
InputProperty | Identifies the Input dependency property. |
Constructors
BandsEffect
public BandsEffect()
Initializes a new instance of the BandsEffect class.
Properties
BandDensity
public double BandDensity
The number of verical bands to add to the output. The higher the value the more bands.
BandIntensity
public double BandIntensity
Intensity of each band.
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
BandDensityProperty
public static readonly DependencyProperty BandDensityProperty
Identifies the BandDensity dependency property.
BandIntensityProperty
public static readonly DependencyProperty BandIntensityProperty
Identifies the BandIntensity dependency property.
InputProperty
public static readonly DependencyProperty InputProperty
Identifies the Input dependency property.