简体   繁体   English

如何在C#Windows窗体应用程序中使用VideoBrush?

[英]How to VideoBrush in c# windows form application?

I'm trying to get webcam video through VideoBrush but the issue is I can't show it on my form as picture box doesn't have fill property. 我正在尝试通过VideoBrush获取网络摄像头视频,但问题是我无法在窗体上显示它,因为图片框没有fill属性。 I have tried other containers too but none worked. 我也尝试过其他容器,但没有一个起作用。 Help please?? 请帮助??

VideoBrush is WPF/Silverlight. VideoBrush是WPF / Silverlight。 If you want to host it in a Windows Forms application you need to put an element with the VideoBrush inside an ElementHost . 如果要将其托管在Windows Forms应用程序中,则需要将带有VideoBrush的元素放入ElementHost

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

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