线条和不透明度
我想在 C# 中的控件上画一条不透明的线。
我用 Visual Basic powerpacks shapecontrol 尝试了这个。但我找不到任何设置不透明度的属性。
如何画一条不透明的线?
谢谢,
I would like to draw an opaque line on a control in c#.
I tried this with visual basic powerpacks shapecontrol.. but I couldn't find any properties that set opacity.
How do I draw an opaque line ?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此代码将绘制两条半透明白线的十字。
WPF
Windows.Forms
This code will draw a cross of two half-transparent white lines.
WPF
Windows.Forms
感谢您的帮助,
我找到了另一种不使用WPF的方法。
C# wnidows 窗体具有 Opacity 属性,因此
Thanks for your help,
I found another way without using WPF.
C# wnidows form has Opacity property, so