示例#1
0
        public MagnifySmoothEffectDirect2DWorker(MagnifySmoothEffect configuration)
        {
            InputCount = 1;

            m_configuration = configuration;

            PixelShader = m_configuration.PixelShader;

            PixelShaderConstant pixelShaderConstant = InitializePixelShaderConstantBuffer();

            PixelShaderConstantBuffer = StructureToIBuffer(pixelShaderConstant);
        }
 public override IImageProvider2 Clone()
 {
     var effect = new MagnifySmoothEffect();
     effect.PixelShader = PixelShader;
     effect.Source = ((IImageProvider2)Source).Clone();
     effect.AspectRatio = AspectRatio;
     effect.HorizontalPosition = HorizontalPosition;
     effect.InnerRadius = InnerRadius;
     effect.MagnificationAmount = MagnificationAmount;
     effect.OuterRadius = OuterRadius;
     return effect;
 }
        public override IImageProvider2 Clone()
        {
            var effect = new MagnifySmoothEffect();

            effect.PixelShader         = PixelShader;
            effect.Source              = ((IImageProvider2)Source).Clone();
            effect.AspectRatio         = AspectRatio;
            effect.HorizontalPosition  = HorizontalPosition;
            effect.InnerRadius         = InnerRadius;
            effect.MagnificationAmount = MagnificationAmount;
            effect.OuterRadius         = OuterRadius;
            return(effect);
        }