S
Sam Sungshik Kong
Hello!
I'm testing Graphics.DrawString and it's very strange.
I created an event handler for the form.s Paint event.
(There's no other code in the form.)
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
string str =
"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
using (SolidBrush b = new SolidBrush(Color.Black))
{
using (Font f = new Font("Microsoft Sans Serif", 8.25f))
{
g.DrawString(str, f, b, 10.0f, 10.0f);
}
}
}
Actually it draws like the following kind(I can't show it in text):
iiiiiiiiiiiiiiiiiiiiiiiiiiiii i i i i i i i i i i i i i i i i i i i i i i i
i i i i i i i i i i i
Can anybody explain why it's like that?
TIA.
Sam
I'm testing Graphics.DrawString and it's very strange.
I created an event handler for the form.s Paint event.
(There's no other code in the form.)
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
string str =
"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
using (SolidBrush b = new SolidBrush(Color.Black))
{
using (Font f = new Font("Microsoft Sans Serif", 8.25f))
{
g.DrawString(str, f, b, 10.0f, 10.0f);
}
}
}
Actually it draws like the following kind(I can't show it in text):
iiiiiiiiiiiiiiiiiiiiiiiiiiiii i i i i i i i i i i i i i i i i i i i i i i i
i i i i i i i i i i i
Can anybody explain why it's like that?
TIA.
Sam