private void DrawSkelet(Skeleton skeleton) { // Draw skeleton joints. foreach (JointType joint in Enum.GetValues(typeof(JointType))) { DrawJoint(skeleton.Joints[joint].ScaleTo(640, 480)); } // Calculate measurments double height = Math.Round(skeleton.Height(), 2); double armLength = Math.Round(skeleton.ArmLength(), 2); double legLength = Math.Round(skeleton.LegLength(), 2); double shoulderBreadth = Math.Round(skeleton.ShoulderBreadth(), 2); // Display measurments. tblHeight.Text = "Height: " + height.ToString() + "m"; tblArmLength.Text = "Arm: " + armLength.ToString() + "m"; tblLegLength.Text = "Leg: " + legLength.ToString() + "m"; tblShoulderBreadth.Text = "Chest: " + shoulderBreadth.ToString() + "m"; }