Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of allmake sure that your object <code>RGBImage</code> and its property <code>DisplayImage</code> aren't <code>null</code>.I use WriteableBitmap to show my RGB values since it creates one WriteableBitmap-object and rewrites pixels to it so that performance is better. You can find more information on WriteableBitmap <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap.aspx" rel="nofollow">here</a>.</p> <p>You can use it like this - </p> <pre><code>WriteableBitmap wBitmap = new WriteableBitmap(colorFrame.Width, colorFrame.Height, // Standard DPI 96, 96, // Current format for the ColorImageFormat PixelFormats.Bgr32, // BitmapPalette null); </code></pre> <p>Write new pixels to the object by doing this - </p> <pre><code>wBitmap.WritePixels( // Represents the size of our image new Int32Rect(0, 0, colorFrame.Width, colorFrame.Height), // Our image data _pixelData, // How much bytes are there in a single row? colorFrame.Width * colorFrame.BytesPerPixel, // Offset for the buffer, where does he need to start 0); </code></pre> <p>Assign it to your image control - </p> <pre><code>this.RGBImage.DisplayImage.Source = wBitmap; </code></pre> <p><strong>Skeleton data</strong></p> <p>You can do skeletal tracking exactly the same as color data, you <code>Enable()</code> the stream, process the data coming in at the <code>SkeletonFrameReady</code> and save all the data in properties in your <code>ViewModel</code>. By doing that it gives you the ability to databind to these properties.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload