I am using C# to develop, I want to use a camera to capture a image in my application.
As far as I know, there are two choices:
WebCam with
[DllImport("avicap32.dll", EntryPoint="capCreateCaptureWindowA")]
And use this function to capture image into clipboard, and then our application can get the image.
Choice 2:
Use directX to capture image, and I found some sample project on codeproject.
My question is : What solution should I choose ?
What should I consider before make a choice ?
Please point me the right direction, Thanks !