Say I have a square with width (# of rows) 300 and height (# of columns) 300. Say I have two square images both with area 100. If picture 1 starts at row 10 and column 10 and picture 2 starts at row 10 and column 200, how do I swap their areas, essentially swapping their locations? I have tried the following code
It moves my image in the right direction but sort of smears across the image. How can I swap these two image areas so I can change their locations?