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; }
public override IImageProvider2 Clone() { var effect = new CustomGrayscaleEffect(); effect.Source = ((IImageProvider2)Source).Clone(); return(effect); }