Exemplo n.º 1
0
        public HslImage ParallelMap(PixelPositionPipelineDelegate process)
        {
            var res = new HslImage(PixelWidth, PixelHeight);

            ParallelForEach((pixel, position) => res[position] = process(pixel, position));
            return(res);
        }
Exemplo n.º 2
0
        public RgbImage Map(PixelPositionPipelineDelegate process)
        {
            var res = new RgbImage(PixelWidth, PixelHeight);

            ForEach((pixel, position) => res[position] = process(pixel, position));
            return(res);
        }