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.