8384858687888990919293
rgb[pixelIndex] = color.argb; iterator.markAsInProgress(); } } iterator.reset(); } private int getPixelIndex (int width, int x, int y) { return y * width + x; }