I have an array of point coordinates. The data is too large and does not allow me to create one BufferedImage, so I would like something like the following.
To create the first BufferedImage take the 100 first lines. Then the loop starts again, but create a new BufferedImage with the lines that range from 101 to 200… do this until the loop reaches the end of the array.
int temp = 100;
while (listPing.size() < temp) {
// Do something
// Create BufferedImage
temp = temp * 2;
}
How would I do this?