Graphics.DrawCurve

DrawCurve(Pen, PointF[])

Draws a cardinal spline through a specified array of PointF structures. This method uses a default tension of 0.5.

public void DrawCurve(Pen pen, PointF[] points)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, PointF[], float)

Draws a cardinal spline through a specified array of PointF structures using a specified tension.

public void DrawCurve(Pen pen, PointF[] points, float tension)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that represent the points that define the curve.
tensionSingleValue greater than or equal to 0.0F that specifies the tension of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, PointF[], int, int)

Draws a cardinal spline through a specified array of PointF structures. The drawing begins offset from the beginning of the array. This method uses a default tension of 0.5.

public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetInt32Offset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsInt32Number of segments after the starting point to include in the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, PointF[], int, int, float)

Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array.

public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPointF[]Array of PointF structures that define the spline.
offsetInt32Offset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsInt32Number of segments after the starting point to include in the curve.
tensionSingleValue greater than or equal to 0.0F that specifies the tension of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, Point[])

Draws a cardinal spline through a specified array of Point structures.

public void DrawCurve(Pen pen, Point[] points)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of Point structures that define the spline.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, Point[], float)

Draws a cardinal spline through a specified array of Point structures using a specified tension.

public void DrawCurve(Pen pen, Point[] points, float tension)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of Point structures that define the spline.
tensionSingleValue greater than or equal to 0.0F that specifies the tension of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also


DrawCurve(Pen, Point[], int, int, float)

Draws a cardinal spline through a specified array of Point structures using a specified tension.

public void DrawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension)
ParameterTypeDescription
penPenPen that determines the color, width, and height of the curve.
pointsPoint[]Array of Point structures that define the spline.
offsetInt32Offset from the first element in the array of the points parameter to the starting point in the curve.
numberOfSegmentsInt32Number of segments after the starting point to include in the curve.
tensionSingleValue greater than or equal to 0.0F that specifies the tension of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null. -or- points is null.

See Also