views:

1158

answers:

1

I need a WebCam component that is only .net(if it builds on Win API or DirectX its ok) the functions i need are:

Preview

Select Input device

Set Resolution

Get a Image

+3  A: 

There are 2 common ways of doing web cam stuff from .net. Using WIA or avicap32.dll. Both are windows API based. You can get some links and guidance here.

Simon P Stevens
WIA is not an option as its not supported by all webcam drivers... and i have failed to find a avicap32 solution that can change the resolution.
Petoj
And yhe download link seems to be broken at that web page. :(
Petoj
WIA is supported by most. The article here (http://www.codeproject.com/KB/IP/Video_Voice_Conferencing.aspx) uses avicap32.dll to do it's video capture. I think you can also do this kind of thing with direct show (see here: http://www.codeproject.com/KB/directx/directshownet.aspx). Finally, you could take a look at OpenCV and OpenCVdotNet (http://sourceforge.net/projects/opencv/ and http://code.google.com/p/opencvdotnet/)
Simon P Stevens