public Magnify() { this.PixelShader = pixelShader; UpdateShaderValue(RadiiProperty); UpdateShaderValue(CenterProperty); UpdateShaderValue(ShrinkFactorProperty); UpdateShaderValue(InputProperty); this.generalTransform = new MagnifyGeneralTransform(this); }
/// <summary> /// Creates an instance and updates the shader's variables to the default values. /// </summary> public MagnifyEffect() { PixelShader = pixelShader; UpdateShaderValue(RadiiProperty); UpdateShaderValue(CenterProperty); UpdateShaderValue(ShrinkFactorProperty); UpdateShaderValue(InputProperty); generalTransform = new MagnifyGeneralTransform(this); }