So basically I have a image and I need to split it into 4 smaller images.
All I got right now is that the images print on the top- left corner but I need to print on in the top right, bottom left and bottom right.
I have two for loops that go through each pixel of the images.
This is the code that prints out just the top-left.
setRGB(x/2,y/2,everypixel)
the "everypixel" is just the pixels in the image.
That will print out just the top-left but how do I print it out for every other corner.
Thanks.
EDIT:
This is basically what I want. The original to the n = 4 (Ignore the n=2)
Thats why I basically want to do with my picture ^^