void cam_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap bit = (Bitmap)eventArgs.Frame.Clone(); picWebCam.Image = bit; }
private void btnStop_Click(object sender, EventArgs e) { cam.Stop(); bit.dispose(); // Need to add in here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)