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

            ParallelForEach((pixel, position) => res[position] = process(pixel, position));
            return(res);
        }
Esempio n. 2
0
        public HslImage ToHslImage()
        {
            var res = new HslImage(PixelWidth, PixelHeight);

            ForEach((pixel, position) => res[position] = pixel.Value.ToHsl());
            return(res);
        }