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

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

            m_configuration = configuration;

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

        }