Базовая структура вложенного цикла выглядит следующим образом:
int imageIndex = 0;
for (int row = 0; row < rowCount; row++) {
for (int column = 0; column < columnCount; column++ {
// Draw your image here at x position of (column * image width)
// and y position of (row * image height). Add a bit to each if you
// want some spacing between your images.
// For example:
drawMyImage(images[imageIndex++], column * imageWidth, row * imageHeight);
}
}