去除选定的 LineShape 阴影效果的方法?
有没有办法在选择lineShape时消除LineShape阴影效果?
替代文本 http://lh4.ggpht。 com/_1TPOP7DzY1E/S6kq2KQ-zdI/AAAAAAAADIg/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
,但最后,这对失效产生了一些反向影响:移动(在面板中)时,该线留下痕迹 - 不会正确无效。
Is there a way to remove the LineShape shadow effect when selecting the lineShape?
alt text http://lh4.ggpht.com/_1TPOP7DzY1E/S6kq2KQ-zdI/AAAAAAAADIg/tUy74j-EpQc/s800/capture4.png
I tried
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
but finally, this have some back effects on invalidation: when moving (in a panel) the line leave traces - does not invalidate properly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 SelectionColor 更改为透明。
Change the SelectionColor to Transparent.