示例#1
0
 public void _colorReader_FrameArrived(object sender, ColorFrameArrivedEventArgs e)
 {
     if (!_isColorEnabled)
     {
         return;
     }
     if (!ReferenceEquals(null, e.FrameReference))
     {
         _colorBitmap.Update(e.FrameReference);
         OnColorImageArrived(_colorBitmap.Bitmap);
     }
 }
示例#2
0
 void _colorReader_FrameArrived(object sender, ColorFrameArrivedEventArgs e)
 {
     if (_displayType == FrameTypes.Color)
     {
         _colorBitmap.Update(e.FrameReference);
     }
 }
示例#3
0
        public async Task <BitmapSource> GetBitmapAsync()
        {
            ColorFrameBitmap bitmap = new ColorFrameBitmap(this);

            bitmap.Update(this);
            return(await Task.FromResult(bitmap.Bitmap));
        }
        private void _colorReader_FrameArrived(object sender, ColorFrameArrivedEventArgs e)
        {
            if (!_colorFrameEnable)
            {
                return;
            }

            _colorBitmap.Update(e.FrameReference);
            MainWindow.Instance().colorImageControl.Source = _colorBitmap.Bitmap;
        }
示例#5
0
 void _replay_ColorFrameArrived(object sender, ReplayFrameArrivedEventArgs <ReplayColorFrame> e)
 {
     if (_displayType == FrameTypes.Color)
     {
         if (_colorBitmap == null)
         {
             _colorBitmap       = new ColorFrameBitmap(e.Frame);
             OutputImage.Source = _colorBitmap.Bitmap;
         }
         _colorBitmap.Update(e.Frame);
     }
 }
示例#6
0
 private void _replay_ColorFrameArrived(object sender, ReplayFrameArrivedEventArgs <ReplayColorFrame> e)
 {
     if (!colorFrameEnable || !viewEnable)
     {
         return;
     }
     if (_colorBitmap == null)
     {
         _colorBitmap = new ColorFrameBitmap(e.Frame);
         MainWindow.Instance().colorImageControl.Source = _colorBitmap.Bitmap;
         //_justColorFrameEnabled = false;
     }
     _colorBitmap.Update(e.Frame);
 }
示例#7
0
 public async Task<BitmapSource> GetBitmapAsync()
 {
     ColorFrameBitmap bitmap = new ColorFrameBitmap(this);
     bitmap.Update(this);
     return await Task.FromResult(bitmap.Bitmap);
 }