用AddString()、DrawPath()得到的文字怎么避免空心? 如题,不想用Graphics.DrawString(...)函数,因为绘制文字用的Graphics已经经过几何(翻转、拉伸等)变换,高手告诉个辄啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Bitmap bitmap=new Bitmap(pictureBox1.Width,pictureBox1.Height); GraphicsPath gp = new GraphicsPath(); gp.AddString("大家好", new FontFamily("宋体"), (int)FontStyle.Bold, 30, new Point(1, 0), StringFormat.GenericTypographic); Graphics g = Graphics.FromImage(bitmap); g.DrawPath(Pens.Red, gp); g.FillPath(Brushes.Red, gp); //填充路径内部 g.Dispose(); pictureBox1.Image = bitmap; 菜鸟问:存储过程的问题。 控件透明 如何通过一个为实例化的对象获取其列名 入门问题!在线等待! c#调用c++ Bulider生成的dll遇见的问题 奇怪的数字字符串问题,搞不定了,求救 请问怎样读写SqlServer中varbinary类型的数据到Excel或Xml或txt文件中?急!!!在线等!!!!!!!! 那位大侠有C#写的VS风格的界面源码?谢谢先。 紧急求救,C#发送传真 [求助]外键约束与事务一起使用时,表中不能插入新记录! 大家帮忙看一下问题在哪 有一个简单但比较复杂饶人的小问题我想不明白
Bitmap bitmap=new Bitmap(pictureBox1.Width,pictureBox1.Height);
GraphicsPath gp = new GraphicsPath();
gp.AddString("大家好", new FontFamily("宋体"), (int)FontStyle.Bold, 30, new Point(1, 0), StringFormat.GenericTypographic);
Graphics g = Graphics.FromImage(bitmap);
g.DrawPath(Pens.Red, gp);
g.FillPath(Brushes.Red, gp); //填充路径内部
g.Dispose();
pictureBox1.Image = bitmap;