Esempio n. 1
0
 private void _depthReader_FrameArrived(object sender, DepthFrameArrivedEventArgs e)
 {
     if (_displayType == FrameTypes.Depth)
     {
         _depthBitmap.Update(e.FrameReference);
     }
 }
Esempio n. 2
0
 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);
     }
 }