如何在 C# 中使用 system.drawing 将文本绘制到 jpg 上并重新保存
有人有关于如何在 jpg 图像上写入文本并使用 .NET 中的 System.Drawing 重新保存它的好例子吗?
Anyone have good example of how to write text onto a jpg image and resave it using System.Drawing in .NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,你可以很容易地做到这一点......
Yes you can do it fairly easily...
我遇到了这些,希望这些有帮助
http://www.codeproject.com/KB /web-image/TextOnImage.aspx
http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-how-to-draw-text-on-an-image
I came across these, hope these help
http://www.codeproject.com/KB/web-image/TextOnImage.aspx
http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-how-to-draw-text-on-an-image
调用 CreateGraphics() 从图像中获取图形,使用其 Graphics.DrawString 方法并根据需要保存。
更多信息:
http://msdn.microsoft.com/en-us /library/system.drawing.graphics.drawstring.aspx
Acquire graphics from image calling CreateGraphics(), use its Graphics.DrawString method and save it as required.
More info:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawstring.aspx