C# 2.0 可以创建发光效果吗?
我想在 c# 2.0 (WinForms) 中的 UserControl 派生类上创建外发光效果。这(容易)可能吗?
如果是,请告诉我如何做:)
我所说的“发光效果”是这样的:
I would like to create an outer glow effect on a UserControl derived class in c# 2.0 (WinForms). Is this (easily) possible?
If yes, please show me how :)
What I mean with "glow effect" is something like this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
希望这有帮助 http://www.codeproject.com/KB/buttons/VistaButton.aspx< /a>
我还阅读了一篇文章,其中作者在按钮上绘制了 2 个矩形(每个矩形覆盖顶部和底部的一半),然后当鼠标悬停时,他会执行一些重叠逻辑。我忘记了完整的逻辑。抱歉,我思考/搜索并返回答案。
Hope this helps http://www.codeproject.com/KB/buttons/VistaButton.aspx
I also rem reading an article where the author draws 2 rectangles over the button (each is covering half from top and bottom) and then when mouse is hover, he does some overlapping logic. I forgot the full logic. Sorry, ill think/search and come back with the answer.
这里有一些关于如何在winforms中轻松实现图形对象光环和特殊效果的教程:
Here are a few tutorials on how to easily achieve halo- and special effects on graphical objects in winforms: