CCT.NUI.Visual.HandLayer.DrawCenter C# (CSharp) Method

DrawCenter() protected method

protected DrawCenter ( HandData hand, Graphics g ) : void
hand CCT.NUI.HandTracking.HandData
g System.Drawing.Graphics
return void
        protected virtual void DrawCenter(HandData hand, Graphics g)  
        {
            g.FillEllipse(Brushes.Blue, hand.Location.X - 5, hand.Location.Y - 5, 10, 10);

            if (hand.HasPalmPoint)
            {
                g.FillEllipse(Brushes.SpringGreen, hand.PalmPoint.Value.X - 5, hand.PalmPoint.Value.Y - 5, 10, 10);
                var palmSize = hand.PalmDistance;
                g.DrawEllipse(Pens.SpringGreen, (int)(hand.PalmPoint.Value.X - palmSize), (int)(hand.PalmPoint.Value.Y - palmSize), (int)(palmSize * 2), (int)(palmSize * 2));
            }
        }