示例#1
0
        public Magnify()
        {
            this.PixelShader = pixelShader;

            UpdateShaderValue(RadiiProperty);
            UpdateShaderValue(CenterProperty);
            UpdateShaderValue(ShrinkFactorProperty);
            UpdateShaderValue(InputProperty);

            this.generalTransform = new MagnifyGeneralTransform(this);
        }
示例#2
0
		/// <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);
		}