如何使用 C# 使用 Microsoft 视频捕获宏 [英] how to use Microsoft Video Capture Macros using C#

查看:41
本文介绍了如何使用 C# 使用 Microsoft 视频捕获宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 C#.NET 制作一个 Windows 应用程序,在该应用程序中我从附加的网络摄像头捕获视频并将其存储到任何位置.

I want to make an Windows application using C#.NET in which I capture video from an attached webcam and store it into any location.

有人可以指导我如何开始/完成这项工作吗?

Can anybody give me pointers on how to get started/accomplish this?

推荐答案

如果您使用的是 Winforms,那么您需要使用一个名为 DirectShow 的 DirectX 组件来执行此操作.您可以从此链接中查看示例并下载源代码.

If your using Winforms, then you need to use a component of DirectX called DirectShow to do this. You can see an example and download source code from this link.

如果您使用的是 WPF,您可以从 此链接查看这是如何完成的.

If you are using WPF, you can see how this is done from this link.

如果您需要一个可以同时使用 WPF 和 Winforms 的库,请尝试此链接

If you need a library that will work with both WPF and Winforms, try this link

这篇关于如何使用 C# 使用 Microsoft 视频捕获宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆