我如何访问和使用Windows的mediacapture api [英] How do i access and consume the mediacapture api of windows

查看:212
本文介绍了我如何访问和使用Windows的mediacapture api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio和C#的新手,所以我需要帮助定义,访问和使用MediaCapture API从网络摄像头捕获图片。



到目前为止,我有一个带按钮和pictureBox的winForm。如何将API加入项目?我在使用条款中加入了什么?我在这一点上迷失了,到目前为止我看到的例子对于让我克服这个障碍毫无帮助。



我们的帮助表示赞赏。



我尝试了什么:



我尝试添加参考。不确定我在找什么。在'Assembly',COM等下寻找'MediaCapture'



尝试加载CameraCaptureUI.dll,但没有加载。



我被卡住了。

I am quite new to Visual Studio and C#, so I need assistance in defining, accessing and using the MediaCapture API to capture a picture from a webcam.

So far I have a winForm with a button and a pictureBox. How do I get the API into the project? What do I put in the "using" clause? I am lost at this point and the examples I have seen so far is of no help in getting me over this hurdle.

Your help is appreciated.

What I have tried:

I try to add a reference. Not sure what I am looking for. Was looking for 'MediaCapture' under 'Assembly', "COM", etc.

Tried loading in the "CameraCaptureUI.dll', but that didn't load.

I am stuck.

推荐答案

试试这些链接 -

< a href =https://msdn.microsoft.com/en-in/library/windows/apps/mt243896.aspx>使用MediaCapture捕获照片和视频 - Windows应用开发 [ ^ ]

< a href =http://wpcsharp.blogspot.in/p/how-to-use-camera-in-wp-81-app.html> WPCsharp:如何在WP 8.1应用中使用相机 [ ^ ]

在Windows应用商店应用中开始使用相机的5个简单步骤。 [ ^ ]
Try these links -
Capture photos and video with MediaCapture - Windows app development[^]
WPCsharp: How to use Camera in WP 8.1 app[^]
5 simple steps to getting started with Camera in Windows Store App.[^]


这篇关于我如何访问和使用Windows的mediacapture api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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