在图片框中显示视频捕获

时间:2022-07-08 15:58:57

I have compiled the sample PLayCap from the directshow.NET website in C#.

我已经从C#的directshow.NET网站编译了样本PLayCap。

PLayCap - This application creates a preview window for the first video capture device.

PLayCap - 此应用程序为第一个视频捕获设备创建预览窗口。

Although the program works fine, i need to add buttons to the form. I cannot do that since, the video capture is displayed on the entire form. I want it to be displayed on a picturebox, for instance picturebox1. So that I can move the picturebox1 a little up and put some buttons.

虽然程序运行正常,但我需要在表单中添加按钮。我不能这样做,因为视频捕获显示在整个表单上。我希望它显示在图片框上,例如picturebox1。这样我就可以将picturebox1稍微向上移动并放置一些按钮。

Does anyone know how to do that ?

有谁知道这是怎么做到的吗 ?

Many Thanks

非常感谢

1 个解决方案

#1


0  

You have to set handler of video render filter to picterbox handler. use picturebox1.handler property

您必须将视频渲染过滤器的处理程序设置为picterbox处理程序。使用picturebox1.handler属性

#1


0  

You have to set handler of video render filter to picterbox handler. use picturebox1.handler property

您必须将视频渲染过滤器的处理程序设置为picterbox处理程序。使用picturebox1.handler属性