简体   繁体   English

如何使WindowsFormsHost透明?

[英]How do I make the WindowsFormsHost transparent?

I am using System.Windows.Forms.Integration.WindowsFormsHost in my WPF application. 我在WPF应用程序中使用System.Windows.Forms.Integration.WindowsFormsHost The System.Windows.Forms.Integration.WindowsFormsHost is a parent of the Panel control, and I am rendering this Panel to show the live camera image from the web-cam. System.Windows.Forms.Integration.WindowsFormsHostPanel控件的父级,我正在渲染此Panel以显示来自网络摄像机的实时摄像机图像。

How do I make it transparent, so that the end user is not able to see the web-cam on the User interface? 如何使其透明,以使最终用户无法在用户界面上看到网络摄像机?

Transaparency can not apply to WindowsFormsHost. 透明性不适用于WindowsFormsHost。 So, you should find another alternative. 因此,您应该找到另一种选择。 You can set it visibility. 您可以设置它的可见性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM