绘制字符串轮廓字体 [英] draw string outline font

查看:125
本文介绍了绘制字符串轮廓字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在表单上绘制字符串而无需填充字体轮廓吗?

Who can i draw string on the form without filling it onlyyhe outline of the font

推荐答案

有一本很棒的书,叫做冯元(Feng Yuan),《 Windows图形编程》(Windows Graphics Programming),展示了如何做到这一点.在C#中,您实际上可以调用从字体创建路径的方法,这意味着您可以从那里绘制轮廓.

GraphicsPath类具有AddString方法,它将为您完成此操作.
There''s a great book called Windows Graphics Programming by Feng Yuan, which shows how to do that. In C#, tho, you can actually call a method that creates a path from a font, which then means you can draw the outline from there.

The GraphicsPath class has an AddString method, that''s what will do it for you.


^ ]对您来说是一篇很好的文章. :)
Here[^] is a very good article for you. :)


这篇关于绘制字符串轮廓字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆