Mouse hittest for a rotated rectangle
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am facing a problem in GDI+ drawing , I have drawn a rectangle on the panel and rotated to some angle. Anyone can guide me how can I apply mouse hittest on the rotated rectangle. I will be thankful to you. I am using following code to draw and rotate the rectangle.
Matrix mx = new Matrix(); mx.RotateAt(30, new PointF(70, 70), MatrixOrder.Prepend); e.Graphics.Transform = mx; g = e.Graphics; Rectangle rect = new Rectangle (10,10,100,100);
Regards,