共用方式為


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

定義

將圓角的矩形繪製到畫布上。

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

參數

x
Single

開始 x 座標。

y
Single

開始 y 座標。

width
Single

矩形的寬度。

height
Single

矩形的高度。

cornerRadius
Single

用來圓角矩形的半徑。

適用於