阅读背景:

Bitmap与OnPaintBackground中的TextRenderer.DrawText

来源:互联网 

If I use TextRenderer.DrawText() using the Graphics object provided in the OnPaintBackground my text looks perfect. If I create my own Bitmap and use the Graphics object obtained from my Bitmap my text looks terrible. It looks like it is anti-aliasing the text using black, not the bitmap's background color. I can avoid this problem if I use Graphics.DrawString(), but this method has horrible kerning problems. What should I do? How can I get TextRenderer.DrawText() to anti-alias properly using the Bitmap's contents?If I use TextRenderer.DrawText() using the Grap




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: