使用 C# 在靠近边缘的圆形图像上写入文本
我正在尝试使用 .net 库在边缘附近的圆圈图像上写入文本。请参考以下图片网址,看看我想要实现什么(即使我不能在绘画中完美地完成:()。
我尝试了图形、位图和其他相关的 .net 类,但它们没有任何功能可以做到这一点。我也对任何第 3 方组件持开放态度预先
感谢并期待您的想法!
I am trying to write text on the circled image near the edges using .net libraries. Please refer to the following url for image to see what I am trying to achieve (Even I can't do perfectly in paint :( ).
I tried Graphics, Bitmap and other relevant classes of .net but they don't have any feature to do it. I am open for any 3rd party components as well.
Thanks in advance and look forward to your thoughts!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以只使用
GraphicsPath.AddString()
,并使用graphics.DrawPath()
使用Graphics对象绘制该路径。然而,我尝试了一下,并没有成功。
这是一篇关于一个比我聪明得多的小伙子的博客文章,他正确地完成了这件事(
GraphicsPath
仍然是关键,但还有更多内容):http://www.planetclegg.com/projects/WarpingTextToSplines.htmlI thought that you could just use
GraphicsPath.AddString()
, and draw that path using the Graphics object usinggraphics.DrawPath()
.However, I tried it and it didn't work.
Here's a blog post about a chap much cleverer than me who's done it properly (
GraphicsPath
is still the key, but there's more to it): http://www.planetclegg.com/projects/WarpingTextToSplines.html