Draws a cardinal spline through a specified array of System.Drawing.PointF structures using a specified tension. The drawing begins offset from the beginning of the array.
- pen
- System.Drawing.Pen that determines the color, width, and style of the curve.
- points
- Array of System.Drawing.PointF structures that define the spline.
- offset
- Offset from the first element in the array of the points parameter to the starting point in the curve.
- numberOfSegments
- Number of segments after the starting point to include in the curve.
- tension
- Value greater than or equal to 0.0F that specifies the tension of the curve.
This method draws a cardinal spline that passes through each point in the array.
The array of points must contain at least three System.Drawing.PointF structures for curve to be drawn.
The value of the offset parameter specifies the number of elements to skip in the array. The first element after the skipped elements represents the starting point of the curve.
The value of the numberOfSegments parameter specifies the number of segments, after the starting point, to draw in the curve. The value of the numberOfSegments parameter must be at least 1. The value of the offset parameter plus the value of the numberOfSegments parameter must be less than the number of elements in the array of the points parameter.
The tension parameter determines the shape of the spline. If the value of the tension parameter is 0.0F, this method draws straight line segments to connect the points. Usually, the tension parameter is less than or equal to 1.0F. Values over 1.0F produce unusual results.