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; }
private void Camera_ImageArrived(object sender, ImageArrivedEventArgs args) { if (ImageArrived != null) ImageArrived(this, args); }
private void Camera_ImageArrived(object source, ImageArrivedEventArgs args) { Dispatcher.BeginInvoke((ThreadStart) (() => Camera_ImageArrived_UIThread(source, args))); }