private void Form1_Paint(object sender, PaintEventArgs e)
{
String theString = "A";
SizeF sz = e.Graphics.VisibleClipBounds.Size;
e.Graphics.TranslateTransform(sz.Width / 2 ,sz.Height / 2);
e.Graphics.RotateTransform(angle);
angle++;
sz = e.Graphics.MeasureString(theString, this.Font);
e.Graphics.DrawString(theString, this.Font, Brushes.Black,-(sz.Width/2),-(sz.Height/2));
}
I dont understand the last part with the DrawString(). The 2 last arguments of the method specify the location where the string HAS TO BE drawn and when i debug i get this 2 values: {Width = 11.2202139 Height = 13.8251934}. But the string is drawn in the center because of the translatetransform() method listed above. So basically i do not understand the last two arguments whatsoever. Please clear that for me.
BTW. Everything works fine the string rotates as it should be but i simply do not understand i do not want to go further without understanding it.