public override IImageProvider2 Clone()
        {
            var effect = new CustomGrayscaleEffect();
            effect.Source = ((IImageProvider2)Source).Clone();

            return effect;
        }
Exemplo n.º 2
0
        public CustomGrayscaleDirect2DWorker(CustomGrayscaleEffect configuration)
        {
            InputCount = 1;

            m_configuration = configuration;

            PixelShader = m_configuration.PixelShader;
        }
Exemplo n.º 3
0
        public override IImageProvider2 Clone()
        {
            var effect = new CustomGrayscaleEffect();

            effect.Source = ((IImageProvider2)Source).Clone();

            return(effect);
        }
        public CustomGrayscaleDirect2DWorker(CustomGrayscaleEffect configuration)
        {
            InputCount = 1;

            m_configuration = configuration;

            PixelShader = m_configuration.PixelShader;

        }