Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21917

image rotation formula

$
0
0
i want to rotate an image at the same position(around it's own center) by an angel but i don't know the formula for calculating the new x and new y needed for rotation.
let's say i draw an image at x 50 and y 90 and i want to rotate it by 20 degrees at the same position how i can calculate the new x and new y needed for rotation?
i just want the formula and if possible the code as well.
thx and sorry for my bad english.

Viewing all articles
Browse latest Browse all 21917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>