73747576777879808182
ArrayList<RGBData> data = new ArrayList<RGBData>(); for (int x = 0; x < res_w; x++) { for (int y = 0; y < res_h; y++) { double[] d = r.getPixel(x, y, new double[3]); data.add(new RGBData(d[0], d[1], d[2])); } } return data; }