I asked a question (with no answers!) about WIA yesterday so have gone for a more generic question today. I'm under the distinct impression that WIA is no longer intended for camera capture.
My question is: so how do you take a camera snap in C#, Winforms, .net?
Asked
Active
Viewed 36 times
0

noelicus
- 14,468
- 3
- 92
- 111
-
What do you mean with a "Camera snap"? Do you mean a printscreen or take a photo with an attached camera? – Max Mar 06 '14 at 11:38
-
This question contains the answer to your problem - http://stackoverflow.com/questions/113426/how-do-i-connect-to-a-usb-webcam-in-net – Eamonn McEvoy Mar 06 '14 at 11:39
-
I mean take a picture with the attached camera – noelicus Mar 06 '14 at 11:39
-
@EamonnMcEvoy so you're saying use DirectShow? (I've seen that question on my extensive search, and most answers say use WIA - which I've had no luck trying to use) – noelicus Mar 06 '14 at 11:40
-
@noelicus The accepted answer uses WIA – Eamonn McEvoy Mar 06 '14 at 11:42
-
it doesn't have an accepted answer! – noelicus Mar 06 '14 at 11:42
-
And you still use WIA today. – Hans Passant Mar 06 '14 at 11:42
-
@noelicus sorry, the top rated answer – Eamonn McEvoy Mar 06 '14 at 11:43
-
Then please, please could somebody answer [my other question](http://stackoverflow.com/questions/22209829/download-wia-sdk-or-dlls-for-camera-capture)? – noelicus Mar 06 '14 at 11:43
-
@noelicus from msdn - "WIA is an API included in Windows that aims to unify the acquisition of images from all kinds of devices, including scanners and cameras." Have you tried downloading the examples? – Eamonn McEvoy Mar 06 '14 at 11:49
-
I've read it "doesn't support video since windows vista" - which could mean "no webcams". I've not been able to find any C# WIA microsoft examples ... do you have a link? – noelicus Mar 06 '14 at 11:58
-
For example ... [this example](http://msdn.microsoft.com/en-us/library/windows/desktop/ms629844%28v=vs.85%29.aspx) is in C++ and then has a note "WIA does not support video devices...". It's as if nobody else has a requirement to use the webcam!! – noelicus Mar 06 '14 at 12:02