选择lineShape时有没有办法去除LineShape阴影效果?
替代文字 http://lh4.ggpht.com/_1TPOP7DzY1E/S6kq2KQ-zdI/AAAAAAADIg/tUy74j-EpQc/s800/capture4.png
我试过了
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
g.SmoothingMode = SmoothingMode.AntiAlias
Dim oldmode As SmoothingMode = g.SmoothingMode
g.DrawLine(_Pen, X1, Y1, X2, Y2)
g.SmoothingMode = oldmode
End Sub
但最后,这对失效有一些负面影响:移动(在面板中)时,线会留下痕迹 - 不会正确失效。