posted 16 years ago
If you have an image with the corners (0,0), (w,0), (w,h) and (0,h), what would be the coordinates for the two subimages?
I'll give a clue:
1st image: (0,0), (xxx,0), (xxx,h) and (0,h)
2nd image: (xxx+1,0), (w,0), (w,h) and (xxx+1,h)
What value would "xxx" have? You need to consider two cases: "w" is even, and "w" is odd.