Graphics.DrawCurve 方法

定义

通过指定的 Point 结构数组绘制基数样线。

重载

DrawCurve(Pen, ReadOnlySpan<PointF>, Single)
DrawCurve(Pen, ReadOnlySpan<PointF>, Int32, Int32, Single)
DrawCurve(Pen, ReadOnlySpan<Point>, Int32, Int32, Single)
DrawCurve(Pen, PointF[], Int32, Int32, Single)

使用指定的紧张通过指定的 PointF 结构数组绘制基数样线。 绘图从数组的开头开始偏移。

DrawCurve(Pen, Point[], Int32, Int32, Single)

使用指定的紧张通过指定的 Point 结构数组绘制基数样线。

DrawCurve(Pen, ReadOnlySpan<PointF>, Int32, Int32)
DrawCurve(Pen, PointF[], Int32, Int32)

通过指定的 PointF 结构数组绘制基数样线。 绘图从数组的开头开始偏移。

DrawCurve(Pen, PointF[], Single)

使用指定的紧张通过指定的 PointF 结构数组绘制基数样线。

DrawCurve(Pen, Point[], Single)

使用指定的紧张通过指定的 Point 结构数组绘制基数样线。

DrawCurve(Pen, ReadOnlySpan<PointF>)
DrawCurve(Pen, ReadOnlySpan<Point>)
DrawCurve(Pen, PointF[])

通过指定的 PointF 结构数组绘制基数样线。

DrawCurve(Pen, Point[])

通过指定的 Point 结构数组绘制基数样线。

DrawCurve(Pen, ReadOnlySpan<Point>, Single)

DrawCurve(Pen, ReadOnlySpan<PointF>, Single)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, ReadOnlySpan<System.Drawing.PointF> points, float tension);

参数

pen
Pen
tension
Single

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

DrawCurve(Pen, ReadOnlySpan<PointF>, Int32, Int32, Single)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, ReadOnlySpan<System.Drawing.PointF> points, int offset, int numberOfSegments, float tension);

参数

pen
Pen
offset
Int32
numberOfSegments
Int32
tension
Single

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

DrawCurve(Pen, ReadOnlySpan<Point>, Int32, Int32, Single)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, ReadOnlySpan<System.Drawing.Point> points, int offset, int numberOfSegments, float tension);

参数

pen
Pen
offset
Int32
numberOfSegments
Int32
tension
Single

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

DrawCurve(Pen, PointF[], Int32, Int32, Single)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

使用指定的紧张通过指定的 PointF 结构数组绘制基数样线。 绘图从数组的开头开始偏移。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.PointF[] points, int offset, int numberOfSegments, float tension);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
PointF[]

定义样条的 PointF 结构的数组。

offset
Int32

points 参数数组中的第一个元素偏移到曲线中的起点。

numberOfSegments
Int32

要包含在曲线中的起始点后的段数。

tension
Single

大于或等于 0.0F 的值,该值指定曲线的紧张度。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 定义起点偏移量和段数。

  • 定义紧张。

  • 绘制一条打开的绿色曲线(从第三点开始)到最后五个点。

该方法将紧张度设置为 1.0。

C#
private void DrawCurvePointFSegmentTension(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    PointF point1 = new PointF(50.0F, 50.0F);
    PointF point2 = new PointF(100.0F, 25.0F);
    PointF point3 = new PointF(200.0F, 5.0F);
    PointF point4 = new PointF(250.0F, 50.0F);
    PointF point5 = new PointF(300.0F, 100.0F);
    PointF point6 = new PointF(350.0F, 200.0F);
    PointF point7 = new PointF(250.0F, 250.0F);
    PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Create offset, number of segments, and tension.
    int offset = 2;
    int numSegments = 4;
    float tension = 1.0F;

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints, offset, numSegments, tension);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 PointF 结构才能绘制曲线。

offset 参数的值指定要在数组中跳过的元素数。 跳过的元素后的第一个元素表示曲线的起点。

numberOfSegments 参数的值指定要在曲线中绘制的起点之后的段数。 numberOfSegments 参数的值必须至少为 1。 offset 参数的值加上 numberOfSegments 参数的值必须小于 points 参数数组中的元素数。

tension 参数确定样条的形状。 如果 tension 参数的值为 0.0F,此方法将绘制直线段以连接点。 通常,tension 参数小于或等于 1.0F。 超过 1.0F 的值会产生异常结果。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, Point[], Int32, Int32, Single)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

使用指定的紧张通过指定的 Point 结构数组绘制基数样线。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.Point[] points, int offset, int numberOfSegments, float tension);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
Point[]

定义样条的 Point 结构的数组。

offset
Int32

points 参数数组中的第一个元素偏移到曲线中的起点。

numberOfSegments
Int32

要包含在曲线中的起始点后的段数。

tension
Single

大于或等于 0.0F 的值,该值指定曲线的紧张度。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 定义起点偏移量和段数。

  • 定义紧张。

  • 绘制一条打开的绿色曲线(从第三点开始)到最后五个点。

该方法将紧张度设置为 1.0。

C#
private void DrawCurvePointSegmentTension(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    Point point1 = new Point(50, 50);
    Point point2 = new Point(100, 25);
    Point point3 = new Point(200, 5);
    Point point4 = new Point(250, 50);
    Point point5 = new Point(300, 100);
    Point point6 = new Point(350, 200);
    Point point7 = new Point(250, 250);
    Point[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Create offset, number of segments, and tension.
    int offset = 2;
    int numSegments = 4;
    float tension = 1.0F;

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints, offset, numSegments, tension);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 Point 结构才能绘制曲线。

offset 参数的值指定要在数组中跳过的元素数。 跳过的元素后的第一个元素表示曲线的起点。

numberOfSegments 参数的值指定要在曲线中绘制的起点之后的段数。 numberOfSegments 参数的值必须至少为 1。 offset 参数的值加上 numberOfSegments 参数的值必须小于 points 参数数组中的元素数。

tension 参数确定样条的形状。 如果 tension 参数的值为 0.0F,此方法将绘制直线段以连接点。 通常,tension 参数小于或等于 1.0F。 超过 1.0F 的值会产生异常结果。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, ReadOnlySpan<PointF>, Int32, Int32)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, ReadOnlySpan<System.Drawing.PointF> points, int offset, int numberOfSegments);

参数

pen
Pen
offset
Int32
numberOfSegments
Int32

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

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

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

通过指定的 PointF 结构数组绘制基数样线。 绘图从数组的开头开始偏移。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.PointF[] points, int offset, int numberOfSegments);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
PointF[]

定义样条的 PointF 结构的数组。

offset
Int32

points 参数数组中的第一个元素偏移到曲线中的起点。

numberOfSegments
Int32

要包含在曲线中的起始点后的段数。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 定义起点偏移量和段数。

  • 绘制一条打开的绿色曲线(从第三点开始)到最后五个点。

该方法使用默认的 0.5 紧张。

C#
private void DrawCurvePointFSegments(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    PointF point1 = new PointF(50.0F, 50.0F);
    PointF point2 = new PointF(100.0F, 25.0F);
    PointF point3 = new PointF(200.0F, 5.0F);
    PointF point4 = new PointF(250.0F, 50.0F);
    PointF point5 = new PointF(300.0F, 100.0F);
    PointF point6 = new PointF(350.0F, 200.0F);
    PointF point7 = new PointF(250.0F, 250.0F);
    PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Create offset and number of segments.
    int offset = 2;
    int numSegments = 4;

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints, offset, numSegments);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 PointF 结构才能绘制曲线。

offset 参数的值指定要在数组中跳过的元素数。 跳过的元素后的第一个元素表示曲线的起点。

numberOfSegments 参数的值指定要在曲线中绘制的起点之后的段数。 numberOfSegments 参数的值必须至少为 1。 offset 参数的值加上 numberOfSegments 参数的值必须小于 points 参数数组中的元素数。

此方法使用默认的 0.5 紧张。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, PointF[], Single)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

使用指定的紧张通过指定的 PointF 结构数组绘制基数样线。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.PointF[] points, float tension);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
PointF[]

表示定义曲线的点的 PointF 结构的数组。

tension
Single

大于或等于 0.0F 的值,该值指定曲线的紧张度。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 创建紧张设置。

  • 通过七点绘制一条开放的绿色封闭曲线。

该方法使用 1.0 的紧张关系。

C#
private void DrawCurvePointFTension(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    PointF point1 = new PointF(50.0F, 50.0F);
    PointF point2 = new PointF(100.0F, 25.0F);
    PointF point3 = new PointF(200.0F, 5.0F);
    PointF point4 = new PointF(250.0F, 50.0F);
    PointF point5 = new PointF(300.0F, 100.0F);
    PointF point6 = new PointF(350.0F, 200.0F);
    PointF point7 = new PointF(250.0F, 250.0F);
    PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Create tension.
    float tension = 1.0F;

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints, tension);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 PointF 结构才能绘制曲线。

tension 参数确定样条的形状。 如果 tension 参数的值为 0.0F,此方法将绘制直线段以连接点。 通常,tension 参数小于或等于 1.0F。 超过 1.0F 的值会产生异常结果。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, Point[], Single)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

使用指定的紧张通过指定的 Point 结构数组绘制基数样线。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.Point[] points, float tension);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
Point[]

定义样条的 Point 结构的数组。

tension
Single

大于或等于 0.0F 的值,该值指定曲线的紧张度。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 创建紧张设置。

  • 通过七点绘制一条开放的绿色封闭曲线。

该方法使用 1.0 的紧张关系。

C#
private void DrawCurvePointTension(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    Point point1 = new Point(50, 50);
    Point point2 = new Point(100, 25);
    Point point3 = new Point(200, 5);
    Point point4 = new Point(250, 50);
    Point point5 = new Point(300, 100);
    Point point6 = new Point(350, 200);
    Point point7 = new Point(250, 250);
    Point[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Create tension.
    float tension = 1.0F;

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints, tension);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 Point 结构才能绘制曲线。

tension 参数确定样条的形状。 如果 tension 参数的值为 0.0F,此方法将绘制直线段以连接点。 通常,tension 参数小于或等于 1.0F。 超过 1.0F 的值会产生异常结果。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, ReadOnlySpan<PointF>)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, scoped ReadOnlySpan<System.Drawing.PointF> points);

参数

pen
Pen

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

DrawCurve(Pen, ReadOnlySpan<Point>)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, scoped ReadOnlySpan<System.Drawing.Point> points);

参数

pen
Pen

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9

DrawCurve(Pen, PointF[])

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

通过指定的 PointF 结构数组绘制基数样线。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.PointF[] points);
C#
public void DrawCurve (System.Drawing.Pen pen, params System.Drawing.PointF[] points);

参数

pen
Pen

确定曲线的颜色、宽度和样式的 Pen

points
PointF[]

定义样条的 PointF 结构的数组。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 通过七点绘制一条开放的绿色曲线。

该方法使用默认的 0.5 紧张。

C#
private void DrawCurvePointF(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    PointF point1 = new PointF(50.0F, 50.0F);
    PointF point2 = new PointF(100.0F, 25.0F);
    PointF point3 = new PointF(200.0F, 5.0F);
    PointF point4 = new PointF(250.0F, 50.0F);
    PointF point5 = new PointF(300.0F, 100.0F);
    PointF point6 = new PointF(350.0F, 200.0F);
    PointF point7 = new PointF(250.0F, 250.0F);
    PointF[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 PointF 结构才能绘制曲线。

此方法使用默认的 0.5 紧张。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, Point[])

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

通过指定的 Point 结构数组绘制基数样线。

C#
public void DrawCurve (System.Drawing.Pen pen, System.Drawing.Point[] points);
C#
public void DrawCurve (System.Drawing.Pen pen, params System.Drawing.Point[] points);

参数

pen
Pen

确定曲线的颜色、宽度和高度的 Pen

points
Point[]

定义样条的 Point 结构的数组。

例外

pen null

-或-

points null

示例

下面的代码示例设计用于 Windows 窗体,它需要 PaintEventArgse,这是 Paint 事件处理程序的参数。 该代码执行以下操作:

  • 创建红色和绿色笔。

  • 创建七个点来定义曲线。

  • 在七点之间绘制六条红色直线,形成不完整的多边形。

  • 通过七点绘制一条开放的绿色曲线。

该方法使用默认的 0.5 紧张。

C#
private void DrawCurvePoint(PaintEventArgs e)
{

    // Create pens.
    Pen redPen = new Pen(Color.Red, 3);
    Pen greenPen = new Pen(Color.Green, 3);

    // Create points that define curve.
    Point point1 = new Point(50, 50);
    Point point2 = new Point(100, 25);
    Point point3 = new Point(200, 5);
    Point point4 = new Point(250, 50);
    Point point5 = new Point(300, 100);
    Point point6 = new Point(350, 200);
    Point point7 = new Point(250, 250);
    Point[] curvePoints = {point1, point2, point3, point4, point5, point6, point7};

    // Draw lines between original points to screen.
    e.Graphics.DrawLines(redPen, curvePoints);

    // Draw curve to screen.
    e.Graphics.DrawCurve(greenPen, curvePoints);
}

注解

此方法绘制一个通过数组中每个点的基数样条。

点数组必须至少包含三个 Point 结构才能绘制曲线。

此方法使用默认的 0.5 紧张。

适用于

.NET 9 和其他版本
产品 版本
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

DrawCurve(Pen, ReadOnlySpan<Point>, Single)

Source:
Graphics.cs
Source:
Graphics.cs
C#
public void DrawCurve (System.Drawing.Pen pen, ReadOnlySpan<System.Drawing.Point> points, float tension);

参数

pen
Pen
tension
Single

适用于

.NET 9 和 Windows Desktop 9
产品 版本
.NET 9
Windows Desktop 9