ICanvas.DrawLine(Single, Single, Single, Single) 方法

定义

在画布上绘制两个点之间的线条。

public:
 void DrawLine(float x1, float y1, float x2, float y2);
public void DrawLine (float x1, float y1, float x2, float y2);
abstract member DrawLine : single * single * single * single -> unit
Public Sub DrawLine (x1 As Single, y1 As Single, x2 As Single, y2 As Single)

参数

x1
Single

起始 x 坐标。

y1
Single

起始 y 坐标。

x2
Single

结束 x 坐标。

y2
Single

结束 x 坐标。

适用于