protected virtual void PaintContour(HandData hand, Graphics g) { if (hand.Contour.Points.Count > 1) { var points = hand.Contour.Points.Select(p => new System.Drawing.Point((int)p.X, (int)p.Y)).ToArray(); g.DrawLines(yellowPen, points); } }