Beispiel #1
0
 public byte[] GetImage()
 {
     // image cache
     if (DateTime.Now > lastImageTime.AddMilliseconds(800))
     {
         lastImage     = webcam.CapturePhoto();
         lastImageTime = DateTime.Now;
     }
     return(lastImage);
 }