private void _depthReader_FrameArrived(object sender, DepthFrameArrivedEventArgs e) { if (_displayType == FrameTypes.Depth) { _depthBitmap.Update(e.FrameReference); } }
void _replay_DepthFrameArrived(object sender, ReplayFrameArrivedEventArgs <ReplayDepthFrame> e) { if (_displayType == FrameTypes.Depth) { if (_depthBitmap == null) { _depthBitmap = new DepthFrameBitmap(e.Frame.Width, e.Frame.Height); OutputImage.Source = _depthBitmap.Bitmap; } _depthBitmap.Update(e.Frame); } }