Example #1
0
 private void depthInfraSwitch_Click(object sender, RoutedEventArgs e)
 {
     if (showInfrared)
     {
         showInfrared             = false;
         depthInfraSwitch.Content = "Depth";
         depthHandler.SetShowState(true);
         infraredHandler.SetShowState(false);
     }
     else
     {
         showInfrared             = true;;
         depthInfraSwitch.Content = "Infrared";
         depthHandler.SetShowState(false);
         infraredHandler.SetShowState(true);
     }
 }
Example #2
0
 public void InitializeInfraredStream()
 {
     this.infraredFrameReader = this.kinectSensor.InfraredFrameSource.OpenReader();
     infraredHandler          = InfraredHandler.Instance;
     infraredHandler.InfraredHandlerSet(this.kinectSensor.InfraredFrameSource.FrameDescription);
     //this.indraredBitmap = new WriteableBitmap(infraredHandler.Width, infraredHandler.Height, 96.0, 96.0, PixelFormats.Gray32Float, null);
     infraredHandler.SetShowState(false);
 }