C# Programming
03-31-2009, 01:40 PM
Guys,
I need your help here. Appreciate any advice as I am not familiar with matrix. Everyone is asking me to use matrix.
I have a rectangle that are draw using the on_paint function.
The users can rotate or resize the rectangle.
Currently I am using the m_graphics.RotateTransform(node.Angle);
If the user DOES NOT rotate and just resize, everything is good. Just like MS Office.
But once it is resize, everything when haywire. I am not able to use the mouse coordinate to track the height and width of the rectangle.
Anyone can help?
Thanks
Daniel
I need your help here. Appreciate any advice as I am not familiar with matrix. Everyone is asking me to use matrix.
I have a rectangle that are draw using the on_paint function.
The users can rotate or resize the rectangle.
Currently I am using the m_graphics.RotateTransform(node.Angle);
If the user DOES NOT rotate and just resize, everything is good. Just like MS Office.
But once it is resize, everything when haywire. I am not able to use the mouse coordinate to track the height and width of the rectangle.
Anyone can help?
Thanks
Daniel