Graphics DrawString 画出字体怎么不一样大啊?
privatevoidDrawText(){GraphicsobjGraphics;objGraphics=Graphics.FromImage(PicCommon);o...
private void DrawText()
{
Graphics objGraphics;
objGraphics = Graphics.FromImage(PicCommon);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics = Graphics.FromImage(PicDown);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics = Graphics.FromImage(PicEnter);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics.Dispose();
}
private void DrawText(Image image,string text)
{
Graphics objGraphics;
objGraphics = Graphics.FromImage(image);
objGraphics.DrawString(text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics.Dispose();
}
同样的方法复制出来。但是它就是不一样大。很奇怪。 展开
{
Graphics objGraphics;
objGraphics = Graphics.FromImage(PicCommon);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics = Graphics.FromImage(PicDown);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics = Graphics.FromImage(PicEnter);
objGraphics.DrawString(_text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics.Dispose();
}
private void DrawText(Image image,string text)
{
Graphics objGraphics;
objGraphics = Graphics.FromImage(image);
objGraphics.DrawString(text, new Font("Courier New", 11), new SolidBrush(Color.Black), 30, 11);
objGraphics.Dispose();
}
同样的方法复制出来。但是它就是不一样大。很奇怪。 展开
2个回答
博思aippt
2024-07-20 广告
2024-07-20 广告
博思AIPPT是基于ai制作PPT的智能在线工具,它提供了4种AI制作PPT的方式,包括AI生成大纲、AI直接生成PPT、文本生成PPT、AI提炼文档生成PPT,一站式集成多种AI生成PPT的方式,可满足办公用户的不同需求和使用场景。ai生...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询