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();
}