System.Drawing.Graphics.DrawCurve Method

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

Syntax

public void DrawCurve (Pen pen, Point[] points)

Parameters

pen
System.Drawing.Pen that determines the color, width, and height of the curve.
points
Array of System.Drawing.Point structures that define the spline.

Remarks

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.Point structures for a curve to be drawn.

This method uses a default tension of 0.5.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0