I have one problem regarding the rotation of an ellipse using this Center. Suppose I have one ellipse and what it needs to be to rotate this ellipse at a point set by the user, and the ellipse should rotate around this given point. I tried
g.RotateTransform(…)
g.TranslateTransform(…)
The code:
Graphics g = this.GetGraphics();
g.RotateTransform((float)degreeArg);
g.DrawEllipse(Pens.Red, 300, 300, 100, 200);
this works great, but how can we let our center rotate the ellipse ....
As possible, any buddy can offer ...... Thanks .......
source
share