本文介绍了我如何访问和使用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.推荐答案 这篇关于我如何访问和使用Windows的mediacapture api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-01 02:42