سلام
من مي خوام يك متن رو در paint رسم كرده و بعد با زاويه هاي مختلف حول مركز متن دوران بدم. ولي در كد زير هر چي زاويه بيشتر مي شه از محل اصلي قرارگيري متن دورتر مي شه.
كسي مي تونه اين كد رو تصحيح كنه؟
string s = "Hello";
SizeF S = e.Graphics.MeasureString(s, f);
PointF P = newPointF((this.Width - S.Width) / 2, (this.Height - S.Height) / 2);
PointF C = newPointF(S.Width / 2, S.Height / 2);
e.Graphics.DrawString(s, f, System.Drawing.Brushes.Red, P);
e.Graphics.TranslateTransform(P.X + C.X, P.Y + C.Y);
e.Graphics.RotateTransform(90);
e.Graphics.DrawString(s, f, System.Drawing.Brushes.Blue, P);
ممنون