2013-04-28 34 views
1

是否可以添加大纲,从文本向外扩展的大纲?VB.NET可以将外部大纲添加到文本(笔划)

即:从Photoshop外面行程就是我在寻找

我已经找到一种方法有大纲的文本里面去,但它不是我所期待的。

我环顾四周,但我一直无法找到任何想要外行大纲的人。

感谢

当前内轮廓:

Dim grp As Graphics = e.Graphics 
    Dim gp As New Drawing2D.GraphicsPath 
    Dim useFont As Font = New Font("Impact", 60, FontStyle.Regular) 
    grp.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias 
    grp.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias 
    gp.AddString("3000", useFont.FontFamily, FontStyle.Regular, 60, New Point(0, 0), StringFormat.GenericTypographic) 
    useFont.Dispose() 

    Dim orangeBrush As New SolidBrush(Color.FromArgb(226, 149, 0)) 
    grp.FillPath(orangeBrush, gp) 

    'This is the stroke below 
    Dim blackpen As New Pen(Color.Black, 2) 
    grp.DrawPath(blackpen, gp) 
    gp.Dispose() 

回答

1

如果你扭转你drawpath和fillpath你可以得到一个外边框为您的文本的顺序。

+0

你能否包含一个代码示例?它似乎是自我解释,但越多的信息越好 – eggy 2013-07-04 03:23:22

相关问题