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

            return effect;
        }
Beispiel #2
0
        public CustomGrayscaleDirect2DWorker(CustomGrayscaleEffect configuration)
        {
            InputCount = 1;

            m_configuration = configuration;

            PixelShader = m_configuration.PixelShader;
        }
Beispiel #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;

        }