Export (0) Print
Expand All

GraphicsPath.AddCurve Method (PointF[], Int32, Int32, Single)

Adds a spline curve to the current figure.

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in system.drawing.dll)

public void AddCurve (
	PointF[] points,
	int offset,
	int numberOfSegments,
	float tension
)
public void AddCurve (
	PointF[] points, 
	int offset, 
	int numberOfSegments, 
	float tension
)
public function AddCurve (
	points : PointF[], 
	offset : int, 
	numberOfSegments : int, 
	tension : float
)
Not applicable.

Parameters

points

An array of PointF structures that represents the points that define the curve.

offset

The index of the element in the points array that is used as the first point in the curve.

numberOfSegments

The number of segments used to draw the curve. A segment can be thought of as a line connecting two points.

tension

A value that specifies the amount that the curve bends between control points. Values greater than 1 produce unpredictable results.

The user must keep the original points if they are needed. The original points are converted to cubic Bézier control points internally, therefore there is no mechanism for returning the original points.

The curve begins at the point in the array specified by offset, and includes the number of points (segments) specified by numberOfSegments.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft