1

我在图片框上绘制文本:

Point text_point = new Point(0, i);
Font drawFont = new Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel);
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawString(Convert.ToString(i), drawFont, drawBrush, text_point);

...但文本总是像这样画得“厚”:

84

我怎样才能让它看起来像: 84 ?

4

1 回答 1

6

尝试:

Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
于 2013-06-11T09:43:39.687 回答