コード例 #1
0
ファイル: HslImage.cs プロジェクト: HowyoungZhou/dip
        public HslImage ParallelMap(PixelPositionPipelineDelegate process)
        {
            var res = new HslImage(PixelWidth, PixelHeight);

            ParallelForEach((pixel, position) => res[position] = process(pixel, position));
            return(res);
        }
コード例 #2
0
ファイル: RgbImage.cs プロジェクト: HowyoungZhou/dip
        public HslImage ToHslImage()
        {
            var res = new HslImage(PixelWidth, PixelHeight);

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