Search code examples
vb.netdirectshow

How to capture image in vb.net using directshow?


I managed to use a sample code from the internet but all it does is display image from my webcam. Can someone help me how to capture image using directshow in vb?


Solution

  • You need DirectShow.NET to capture in VB.NET because you cannot interface to DirectShow from VB.NET directly. DirectShow.NET comes with samples including those featuring video capture. CapWMV is addressing the question you posted (it's C# though, you will find other in VB.NET there):

    Samples\Capture\CapWMV
    ----------------------
    Capture from video capture devices to WMV files.