C# Class Sanguosha.UI.Effects.MonochromeEffect

This is the implementation of an extensible framework ShaderEffect which loads a shader model 2 pixel shader. Dependecy properties declared in this class are mapped to registers as defined in the *.ps file being loaded below.
Inheritance: System.Windows.Media.Effects.ShaderEffect
Show file Open project: RagingBigFemaleBird/sgs Class Usage Examples

Public Properties

Property Type Description
FilterColorProperty System.Windows.DependencyProperty
InputProperty System.Windows.DependencyProperty
StrengthProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CoerceStrength object

Public Methods

Method Description
MonochromeEffect ( ) : System

Creates an instance and updates the shader's variables to the default values.

Private Methods

Method Description
CoerceStrength ( DependencyObject d, object value ) : object

Method Details

MonochromeEffect() public method

Creates an instance and updates the shader's variables to the default values.
public MonochromeEffect ( ) : System
return System

Property Details

FilterColorProperty public static property

Gets or sets the FilterColor variable within the shader.
public static DependencyProperty,System.Windows FilterColorProperty
return System.Windows.DependencyProperty

InputProperty public static property

Gets or sets the Input of the shader.
public static DependencyProperty,System.Windows InputProperty
return System.Windows.DependencyProperty

StrengthProperty public static property

Gets or sets the Strength variable within the shader.
public static DependencyProperty,System.Windows StrengthProperty
return System.Windows.DependencyProperty