Maybee this help to understand the problem
Matrix m = new Matrix();
m.RotateAt(rot, new PointF(imgrect.Left + imgrect.Width / 2, imgrect.Top + imgrect.Height / 2));
Graphics.Transform = m;
Graphics.DrawImage(b.img, imgrect);
ups... i found the solution myself if we say the user clicked a point p the convertation will be:
Code
Point[] pts = new Point[1];
pts[0] = p;
m.Invert();
m.VectorTransformPoints(pts);
pts[0].X += (int)m.OffsetX;
pts[0].Y += (int)m.OffsetY;Now pts[0] can be used to find the square that was clicked,
Sunny SharmaRank #223 · 11.1K pointsPosted Jun 25, 2013, 2:48 AM EDT
You're right, I'm not getting it... please elaborate.