[英]Transparent background image over transparent Form
Well I was doing this setting the TransparencyKey same as BackColor, but doesn't makes totally transparent, here a pic: 好吧,我在进行与BackColor相同的TransparencyKey设置,但是并没有完全透明,请参见以下图片:
How to make the form totally transparent to set the BackgroundImage a transparent Back-Colored .png? 如何使窗体完全透明以将BackgroundImage设置为透明的Back-Colored .png? Hope someone could help me (I've had this doubt for so long) Thanks.
希望有人可以帮助我(我对此怀疑已有很长时间了)谢谢。
The TransparencyKey
should be a color on the background image, not a color on the form itself. TransparencyKey
应该是背景图片上的颜色,而不是表单本身上的颜色。 So you can't set the TransparencyKey
to the form's BackColor
since the form is not its own background image. 因此,您不能将
TransparencyKey
设置为表单的BackColor
因为表单不是它自己的背景图像。
It's been a very long time I read it but I'll post a reference link as I've found it. 我已经读了很长时间,但是找到后我会发布一个参考链接。 It's on MSDN, I believe.
我相信它在MSDN上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.