带Graphics.DrawPath的文本轮廓 [英] Text Outline with Graphics.DrawPath

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

问题描述

我正在编写一个自定义控件,其中包含一些文本,我想使用此代码在其上添加轮廓:

I''m writing a custom control that contains some text that I want to put an outline on it using this code:

e.Graphics.DrawPath(New Pen(New SolidBrush(OutlineColor), OutlineSize), TextPath)


但是在绘制轮廓时,它的线条突出了一些字母,我不知道如何删除它们.有什么办法可以删除它们?

像这样
http://i46.tinypic.com/23k2no.jpg [


But when the outline is rendered, it has lines jutting out some of the letters and I don''t know how to remove them. Is there any way to remove them?

Like this
http://i46.tinypic.com/23k2no.jpg[^]

推荐答案

我找到了答案!如果将笔的linejoin属性设置为round,它们就会消失!
I found an answer! If I set the pen''s linejoin property to round, they disappear!


这篇关于带Graphics.DrawPath的文本轮廓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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