C#/VB.NET 中清晰字体 Clear Type 的使用

5
2个回答

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接