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

PaintHand() private method

private PaintHand ( Graphics g, HandData hand ) : void
g System.Drawing.Graphics
hand CCT.NUI.HandTracking.HandData
return void
        private void PaintHand(Graphics g, HandData hand)
        {
            g.TranslateTransform(hand.Location.X * this.zoomFactor, hand.Location.Y * this.zoomFactor);
            g.ScaleTransform(this.zoomHandFactor, this.zoomHandFactor);
            g.TranslateTransform(-hand.Location.X * this.zoomFactor, -hand.Location.Y * this.zoomFactor);
            g.ScaleTransform(this.zoomFactor, this.zoomFactor);
            if (this.ShowConvexHull)
            {
                this.PaintCovexHull(hand, g);
            }
            if (this.ShowContour && hand.Contour != null)
            {
                this.PaintContour(hand, g);
            }
            DrawFingerPoints(hand, g);
            this.DrawCenter(hand, g);
            g.ResetTransform();
        }