• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

capture an image

i wonder if any one can help me to write a C# code to capture an image from the camera and save it directly to a specific path like "c:\programs\img"  
1 Solution
Jose ParrotGraphics ExpertCommented:
The code at
does it for a webcam.

For generic understanding of this subject you have a good explanation at
and http://msdn.microsoft.com/en-us/library/dd370841(v=VS.85).aspx

The function IPhotoAcquireDeviceSelectionDialog does almost everything is needed. An instructiion on how to use it (with C, but you can adapt it to C#). The disadvantage in this procedure is that is MFC, which can be not applicable to your case.

I think the best way is to follow Microsoft

Hope ii helps you!
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now