public FastImage(FastImage c) { pixels = new SimpleColor[c.width, c.height]; width = c.width; height = c.height; Parallel.For(0, width, x => { Parallel.For(0, height, y => { SimpleColor color = c.GetPixel(x, y); pixels[x, y] = new SimpleColor(color.GetR(), color.GetG(), color.GetB(), color.GetA()); }); }); }
public SimpleColor SetPixel(int x, int y, SimpleColor c) { pixels[x, y].Set(c.GetR(), c.GetG(), c.GetB(), c.GetA()); return(pixels[x, y]); }