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:
Point[] pts = new Point[1];
pts[0] = p;
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 SharmaPosted Jun 25, 2013, 6:48 AM
You're right, I'm not getting it... please elaborate.