如何使用图形模糊DrawLine?

时间:2019-02-25 16:27:41

标签: vb.net graphics brush

我研究了数周,没有发现任何相关的东西,我想知道如何模糊在VB.NET中创建的图形,以制作像Photoshop笔刷硬度一样的软笔刷。

示例

enter image description here

我的代码

Dim DrawColor As Color = Color.Orange
Dim brushSize As Integer = 10

Public Pt As Point
Dim brush As New Pen(DrawColor, brushSize)

Private Sub PaintBrush(x As Integer, y As Integer)

    graphic.SmoothingMode = SmoothingMode.AntiAlias
   'graphic.BLUR?
    graphic.DrawLine(brush, Pt, New Point(x, y))
    Pt = New Point(x, y)
    brush.Dispose()

  End Using

0 个答案:

没有答案