public HslImage ParallelMap(PixelPositionPipelineDelegate process) { var res = new HslImage(PixelWidth, PixelHeight); ParallelForEach((pixel, position) => res[position] = process(pixel, position)); return(res); }
public HslImage ToHslImage() { var res = new HslImage(PixelWidth, PixelHeight); ForEach((pixel, position) => res[position] = pixel.Value.ToHsl()); return(res); }