Exemplo n.º 1
0
 private void Video_NewFrame(object sender, NewFrameEventArgs eventArgs)
 {
     try
     {
         // call each save method asynchronously
         foreach (AsyncMethodCaller amc in caller.GetInvocationList())
         {
             amc.BeginInvoke((Bitmap)eventArgs.Frame.Clone(), null, null);
         }
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex.ToString());
     }
 }