示例#1
0
 private void Camera_ImageArrived_UIThread(object source, ImageArrivedEventArgs args)
 {
     var bitmap = LoadBitmap(args.Bitmap);
     image.Width = bitmap.Width;
     image.Height = bitmap.Height;
     image.Source = bitmap;
 }
示例#2
0
 private void Camera_ImageArrived(object sender, ImageArrivedEventArgs args)
 {
     if (ImageArrived != null) ImageArrived(this, args);
 }
示例#3
0
 private void Camera_ImageArrived(object source, ImageArrivedEventArgs args)
 {
     Dispatcher.BeginInvoke((ThreadStart) (() => Camera_ImageArrived_UIThread(source, args)));
 }