コード例 #1
0
 public WebCam()
 {
     wcc = new WebCamCapture();
     wcc.TimeToCapture_milliseconds = 30;
     wcc.CaptureHeight = 240;
     wcc.CaptureWidth = 320;
     wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured);
     wcc.Start(0);
 }
コード例 #2
0
 public WebCamVideoSource(float fps, int width, int height)
 {
     wcc = new WebCamCapture();
     wcc.TimeToCapture_milliseconds = (int)((1f / fps) * 1000);//50hz
     wcc.CaptureHeight = height;
     wcc.CaptureWidth = width;
     wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured);
 }
コード例 #3
0
 public WebCamVideoSource()
 {
     wcc = new WebCamCapture();
     wcc.TimeToCapture_milliseconds = 20;//50hz
     wcc.CaptureHeight = 240;
     wcc.CaptureWidth = 320;
     wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured);
 }