public IInternalImageProcessingContext <TPixel> CreateImageProcessingContext <TPixel>(Image <TPixel> source, bool mutate) where TPixel : struct, IPixel <TPixel> { var op = new FakeImageOperations <TPixel>(source, mutate); this.ImageOperators.Add(op); return(op); }
public IInternalImageProcessingContext <TPixel> CreateImageProcessingContext <TPixel>(Configuration configuration, Image <TPixel> source, bool mutate) where TPixel : unmanaged, IPixel <TPixel> { var op = new FakeImageOperations <TPixel>(configuration, source, mutate); this.imageOperators.Add(op); return(op); }