@@ -12,19 +12,19 @@ namespace WPF.ImageEffects
1212 /// <summary>
1313 /// BrightContrastEffect
1414 /// </summary>
15- public class BrightContrastEffect : ShaderEffect
15+ public class BrightnessContrastEffect : ShaderEffect
1616 {
1717 public static readonly DependencyProperty InputProperty =
18- ShaderEffect . RegisterPixelShaderSamplerProperty ( "Input" , typeof ( BrightContrastEffect ) , 0 ) ;
18+ ShaderEffect . RegisterPixelShaderSamplerProperty ( "Input" , typeof ( BrightnessContrastEffect ) , 0 ) ;
1919
2020 public static readonly DependencyProperty BrightnessProperty =
21- DependencyProperty . Register ( nameof ( Brightness ) , typeof ( double ) , typeof ( BrightContrastEffect ) , new UIPropertyMetadata ( 0.0 , PixelShaderConstantCallback ( 0 ) ) ) ;
21+ DependencyProperty . Register ( nameof ( Brightness ) , typeof ( double ) , typeof ( BrightnessContrastEffect ) , new UIPropertyMetadata ( 0.0 , PixelShaderConstantCallback ( 0 ) ) ) ;
2222
2323 public static readonly DependencyProperty ContrastProperty =
24- DependencyProperty . Register ( nameof ( Contrast ) , typeof ( double ) , typeof ( BrightContrastEffect ) , new UIPropertyMetadata ( 0.0 , PixelShaderConstantCallback ( 1 ) ) ) ;
24+ DependencyProperty . Register ( nameof ( Contrast ) , typeof ( double ) , typeof ( BrightnessContrastEffect ) , new UIPropertyMetadata ( 0.0 , PixelShaderConstantCallback ( 1 ) ) ) ;
2525
2626
27- public BrightContrastEffect ( )
27+ public BrightnessContrastEffect ( )
2828 {
2929 PixelShader = new PixelShader ( ) { UriSource = new Uri ( @"pack://application:,,,/WPF.ImageEffects;component/Shaders/ImageShader.fxc" ) } ;
3030 UpdateShaderValue ( InputProperty ) ;
0 commit comments