void wcc_ImageCaptured(object source, WebcamEventArgs e)
 {
     latest = e.WebCamImage;
     if (dataUpdatedEvent != null)
         dataUpdatedEvent(this, e);
 }
 void wcc_ImageCaptured(object source, WebcamEventArgs e)
 {
     latest = e.WebCamImage;
     if (NewImageRecieved != null)
     {
         Stream s = new MemoryStream();
         e.WebCamImage.Save(s, System.Drawing.Imaging.ImageFormat.Jpeg);
         s.Position = 0;
         NewImageRecieved(this, new NewImageDataRecievedEventArgs(e.WebCamImage, s));
     }
 }