The quickest way would be to download the DirectX SDK and look at the samples provided. The samples provided should be able to provide a simple albeit framework alot of work to do anything such as actually grabbing a frame.
There are 2 methods to do this. You can use WIA or you can use DirectShow. WIA is pretty simple "IF YOUR WEB CAM" supports it. - If it doesn't then you have to use DirectShow.
Sadly Microsoft has given us developers a black spot in regards to this and therefore using DirectShow, was extremely painful, required lots of 3rd party code, and very unreliable. They "claim" to be improving the managed DirectX with new CTP drops, and I also have heard people say that DShow was EOLed so I do not know if anything has changed in the alst 3-4 months since i've touched Manged DirectX.
My advice is to download the latest Managed DirectX SDK and look at the samples and see if there is alot of DX stuff. If you are unable to grab a frame from any of the samples then turn to google and search for DirectShow C#.NET Frame Grabber. Should return several 3rd party libraries that have attempted to encapsulate these capabilities to the best of their abilities.
Image acquisition from webcam
NeedHelper
i m trying to get buffer using Dshow on my PDA Wm5.0, but i could got buffer captured on written to file, but anyone tell me way to get buffer
as i need each frame, process it, and send over network.
Thanks.
Christopher Bermingham
There are 2 methods to do this. You can use WIA or you can use DirectShow.
WIA is pretty simple "IF YOUR WEB CAM" supports it. - If it doesn't then you have to use DirectShow.
Sadly Microsoft has given us developers a black spot in regards to this and therefore using DirectShow, was extremely painful, required lots of 3rd party code, and very unreliable. They "claim" to be improving the managed DirectX with new CTP drops, and I also have heard people say that DShow was EOLed so I do not know if anything has changed in the alst 3-4 months since i've touched Manged DirectX.
My advice is to download the latest Managed DirectX SDK and look at the samples and see if there is alot of DX stuff. If you are unable to grab a frame from any of the samples then turn to google and search for DirectShow C#.NET Frame Grabber. Should return several 3rd party libraries that have attempted to encapsulate these capabilities to the best of their abilities.