Spin Circle around center

NicoVB

Well-known member
Joined
Jan 2, 2002
Messages
160
Location
Belgium
How do you spin a circle(image) around his center.

graph.RotateTransform(angle)
graph.DrawImage(....)

==> This rotates the circle around the leftup corner of the image...

How do you rotate it around his center??

Thanks

Nico
 
Offset where you draw it, Ive never tried this but if the image rotates around the topleft then just move it down and to the right this should make it stay at the "same place". There may be a specific function for this. Youll need to write an algorythm to move it depending on the angle used to rotate it.
 
Back
Top