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