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); } }
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); } }