摘要: 思路:将文字生成图片,再加载此图片伸缩至需要大小。首先要获取文字的实际大小。宽度高度,再通过图片缩放就OK了 public static void DrawText() { Font f = new Font("Aris", 15, FontStyle.Italic | FontStyle.Strikeout); string s = "我的测试"; Bitmap b = new Bitmap(1, 1); Graphics g = Graphics.FromImage(b); ... 阅读全文
posted @ 2014-02-28 00:43 Shikyoh 阅读(624) 评论(0) 推荐(0) 编辑