Capture still image from webcam (DirectSHowLib, VB.NET)
问题 I'm ashamed, but I'll ask anyway: which is the most straightforward way to take a picture from a webcam with its default size and color-depth? I started playing with DirectShowLib but I'm clueless... Can anyone guive me a guidance? Imports DirectShowLib Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click PictureBox1.Image = Nothing Dim Cam As DsDevice = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice).FirstOrDefault If Cam IsNot