Rotating an image

G

Guest

Hello All,
I want to make a compass, that i give it the angle so the arrow points to
the this angle, what i want to do is, i have an image for a compass with
arrow points to the north, then i rotate the whole image to the angle, as if
the arrow goes to this angle.
So anyone could help me about rotating an image, i found it in windows
application, but in mobile app. i cant do it.
Thanks in advance,
Tamer Hesham
 
J

Joseph Byrns

You need to use CF2.0 and the lockBits method if the bitmap class. This
gives you access to the pixels of the bitmap. Go through each pixel and
move it to the rotated location in a second bitmap.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top