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

定义

将矩形绘制到画布上。

public:
 void DrawRectangle(float x, float y, float width, float height);
public void DrawRectangle (float x, float y, float width, float height);
abstract member DrawRectangle : single * single * single * single -> unit
Public Sub DrawRectangle (x As Single, y As Single, width As Single, height As Single)

参数

x
Single

起始 x 坐标。

y
Single

起始 y 坐标。

width
Single

矩形的宽度。

height
Single

矩形的高度。

适用于