• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • 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"  
0
caznova
Asked:
caznova
1 Solution
 
Jose ParrotGraphics ExpertCommented:
The code at
http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10 
does it for a webcam.

For generic understanding of this subject you have a good explanation at
http://msdn.microsoft.com/en-us/library/dd370838(v=VS.85).aspx
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!
Jose
0
 
DhaestCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

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