Esempio n. 1
0
 private void CameraViewerInitialized(object sender, EventArgs e)
 {
     width              = CaptureWidth;
     height             = CaptureHeight;
     device             = new DirectShowDevice(CaptureWidth, CaptureHeight, PreviewDivider, MaxFramerate);
     device.FrameReady += DeviceFrameReady;
 }
Esempio n. 2
0
 public void Dispose()
 {
     if (device != null)
     {
         device.Dispose();
         device = null;
     }
 }