Click here to Skip to main content
15,889,834 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
HI ALL

I had a image in my picture box i want the image to rotate based on User Click.

Kindly provide your Feedback.

Rgds
Jagdesh
Posted

1 solution

First of all, don't use PictureBox. Please see my past answers:
How do I clear a panel from old drawing[^],
draw a rectangle in C#[^],
Append a picture within picturebox[^].

Rotation of anything is really easy. You need to use System.Drawing.Graphics.Transform. Please see:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.transform.aspx[^],
http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.matrix.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900