title: Why isn't Color Image Displaying?
body: <p>I am using the Kinect SDK and trying to add a color frame. I am using the code:</p>
  
  <pre><code>byte[] pixels = new byte[sensor.ColorStream.FramePixelDataLength];
  
  WriteableBitmap image = new WriteableBitmap(sensor.ColorStream.FrameWidth, sensor.ColorStream.FrameHeight, 96, 96,
          PixelFormats.Bgra32, null);
  
  video.Source = image;
  
  colorFrame.CopyPixelDataTo(pixels);
  
  image.WritePixels(new Int32Rect(0, 0, image.PixelWidth, image.PixelHeight), pixels, image.PixelWidth * sizeof(int), 0);
  </code></pre>
  
  <p>But the image isn't displaying. I know that I can connect to the Kinect because I can change the elevation angle. What am I doing wrong? Thanks in advance. <em>Note: I am trying to avoid using Coding4Fun</em></p>