Ejemplo n.º 1
0
 private void kinect_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e)
 {
     using (SkeletonFrame skeletonFrame = e.OpenSkeletonFrame())  // Open the Skeleton frame
     {
         if (skeletonFrame != null && this.skeletonData != null)  // check that a frame is available
         {
             skeletonFrame.CopySkeletonDataTo(this.skeletonData); // get the skeletal information in this frame
             Debug.WriteLine(skeletonFrame.ToString());
         }
     }
 }