public void _colorReader_FrameArrived(object sender, ColorFrameArrivedEventArgs e) { if (!_isColorEnabled) { return; } if (!ReferenceEquals(null, e.FrameReference)) { _colorBitmap.Update(e.FrameReference); OnColorImageArrived(_colorBitmap.Bitmap); } }
void _colorReader_FrameArrived(object sender, ColorFrameArrivedEventArgs e) { if (_displayType == FrameTypes.Color) { _colorBitmap.Update(e.FrameReference); } }
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; }
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); } }
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); }
public async Task<BitmapSource> GetBitmapAsync() { ColorFrameBitmap bitmap = new ColorFrameBitmap(this); bitmap.Update(this); return await Task.FromResult(bitmap.Bitmap); }