How to preview and capture video in Windows Forms?

Viewed 165

I have an old application that uses a DirectShow DLL for camera preview and image capture. This is just a small part of a bigger system. I have two issues. Firstly the preview doesn't work for some users with modern High dpi graphics. Secondly the DLL is 32-bit forcing me to build the whole application as 32-bit.

I am currently using VS2013 and targetting .Net 4.0 but I do have the option to upgrade to newer versions if necessary.

With a bit more research I can probably find a way around the preview problems but I would really like to replace this with a better way of handling the camera data.

Any suggestions for the best / easiest way to do this?

Thanks, Phil

1 Answers

You can use a built-in DLL in Windows called avicap32.dll, which will let you show a live view from the webcam and capture from the webcam. This tutorial explains it in further detail.

Related