ALX
Well-known member
I apologize for not paying better attention in trig class back in the 60's. Yes, I am that old ! I need help determining how to adjust the X and Y coordinates of an image that has been rotated to move the image to the Left, Right, Up or Down. The image is in a Picture Box and may have been rotated by the user to align a scanned image to a reference grid. The user also needs to be able to move the image left, right, up or down with the arrow keys to help center the image. My problem is: if the image has been rotated, the transform is based on the image's original disposition. If the user presses the Left arrow key and the image has been rotated 90 degrees, subtracting 1 from the image's X coordinate moves the image up instead of left. I could copy the bitmap as it stands in it's rotated position and set the angle back to 0, but each time that is done there is a degradation of the image quality. I know I need to adjust both the X and Y coordinates using sines and / or cosines, but I just can't recollect how to do it. I know there's a kind math genius out there that can help...
Many Thanks !!!
Many Thanks !!!