posted 18 years ago
I did something in Pascal once to rotate an entire line drawing picture. To calculate the new position for each pixel I converted x,y coordinates to polar, added or subtracted some degrees, and converted back. There were some tricky cases for negatives as I recall. (I was a music major but my dad taught college math for 32 years and got me through some of it.) If you don't want to rotate your image you could use the same technique just to compute a new position for one corner of the image.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi