/// <summary> /// Draw a bezier curve on the canvas /// </summary> /// <param name="canvas">The canvas on which the bezier curve is drawn</param> public void Draw(System.Drawing.Graphics canvas) { System.Drawing.Point[] rgPoints; rgPoints = new System.Drawing.Point[m_points.Count]; for (int i = 0; i < m_points.Count; i++) { rgPoints[i].X = (int)m_points[i].x; rgPoints[i].Y = (int)m_points[i].y; } canvas.DrawBeziers(m_style.drawingStyle, rgPoints); }