我研究了数周,没有发现任何相关的东西,我想知道如何模糊在VB.NET中创建的图形,以制作像Photoshop笔刷硬度一样的软笔刷。
示例
我的代码
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