Class ColorToneEffect
Effect that modifies the color tone of a visual using two colors as the sampling.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Expression.Media.Effects
Assembly: OpenSilver.Expression.Effects.dll
Syntax
public sealed class ColorToneEffect : ShaderEffect
Constructors
| Improve this Doc View SourceColorToneEffect()
Creates an instance and updates the shader's variables to the default values.
Declaration
public ColorToneEffect()
Fields
| Improve this Doc View SourceDarkColorProperty
This property is mapped to the DarkColor variable within the pixel shader.
Declaration
public static readonly DependencyProperty DarkColorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DesaturationProperty
This property is mapped to the Desaturation variable within the pixel shader.
Declaration
public static readonly DependencyProperty DesaturationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
InputProperty
The explicit input for this pixel shader.
Declaration
public static readonly DependencyProperty InputProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LightColorProperty
This property is mapped to the LightColor variable within the pixel shader.
Declaration
public static readonly DependencyProperty LightColorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ToneAmountProperty
This property is mapped to the Tone variable within the pixel shader.
Declaration
public static readonly DependencyProperty ToneAmountProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDarkColor
Gets or sets the DarkColor variable within the shader.
Declaration
public Color DarkColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Desaturation
Gets or sets the Desaturation variable within the shader.
Declaration
public double Desaturation { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LightColor
Gets or sets the LightColor variable within the shader.
Declaration
public Color LightColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ToneAmount
Gets or sets the Tone variable within the shader.
Declaration
public double ToneAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Double |