We are about to switch to a new forum software. Until then we have removed the registration on this forum.
resize 1 whole array with images.
PImage[] foto;
int[][] myArray;
PImage[] plaatjes(PImage[] a) {
PImage[]hulp = new PImage[a.length];
for (int i =0; i< hulp.length; i++) {
hulp[i] = loadImage(i +".png");
hulp[i] = (i +".png").resize(width /70, height/70); <--------- how you do this?
}
return hulp;
}
Answers
Maybe this?
In the previous line you have specified that hulp[i] is an image, so you can do to hulp[i] anything that you would do to an image, including .resize().
I hope it helps!