Rotating an image

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top