2010-05-28 67 views

回答

5
protected override void OnPaint(PaintEventArgs e) 
{ 
    e.Graphics.DrawString("Normal style", this.Font, Brushes.Black, 50, 50); 

    e.Graphics.TextRenderingHint = 
     System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; 

    e.Graphics.DrawString("ClearType style", this.Font, Brushes.Black, 50, 100); 
} 
0

另外,設置平滑方法爲 「標準」,使用:

e.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAliasGridFit