Exemplo n.º 1
0
 private void CaptureAllCams()
 {
     foreach (var c in controllers)
     {
         if (c.CapturedImage != null)
         {
             this.Invoke(new MethodInvoker(delegate()
             {
                 //Bitmap b = (Bitmap) c.CapturedImage.Clone();
                 lock (thisLock)
                 {
                     var savePath = Path.Combine(rootFolder, c.HeaderText + "_-_" + IDGenerator.GenerateDateTimeID() + ".jpg");
                     Debug.WriteLine(savePath);
                     c.CapturedImage.Save(savePath, ImageFormat.Jpeg);
                 }
                 //b.Dispose();
             }));
         }
     }
 }