共用方式為


Canvas.DrawRoundRect Method

Definition

Overloads

DrawRoundRect(RectF, Single, Single, Paint)

Draw the specified round-rect using the specified paint.

DrawRoundRect(Single, Single, Single, Single, Single, Single, Paint)

Draw the specified round-rect using the specified paint.

DrawRoundRect(RectF, Single, Single, Paint)

Draw the specified round-rect using the specified paint.

[Android.Runtime.Register("drawRoundRect", "(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V", "GetDrawRoundRect_Landroid_graphics_RectF_FFLandroid_graphics_Paint_Handler")]
public virtual void DrawRoundRect (Android.Graphics.RectF rect, float rx, float ry, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRoundRect", "(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V", "GetDrawRoundRect_Landroid_graphics_RectF_FFLandroid_graphics_Paint_Handler")>]
abstract member DrawRoundRect : Android.Graphics.RectF * single * single * Android.Graphics.Paint -> unit
override this.DrawRoundRect : Android.Graphics.RectF * single * single * Android.Graphics.Paint -> unit

Parameters

rect
RectF

The rectangular bounds of the roundRect to be drawn

rx
Single

The x-radius of the oval used to round the corners

ry
Single

The y-radius of the oval used to round the corners

paint
Paint

The paint used to draw the roundRect

Attributes

Remarks

Draw the specified round-rect using the specified paint. The roundrect will be filled or framed based on the Style in the paint.

Java documentation for android.graphics.Canvas.drawRoundRect(android.graphics.RectF, float, float, android.graphics.Paint).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DrawRoundRect(Single, Single, Single, Single, Single, Single, Paint)

Draw the specified round-rect using the specified paint.

[Android.Runtime.Register("drawRoundRect", "(FFFFFFLandroid/graphics/Paint;)V", "GetDrawRoundRect_FFFFFFLandroid_graphics_Paint_Handler")]
public virtual void DrawRoundRect (float left, float top, float right, float bottom, float rx, float ry, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRoundRect", "(FFFFFFLandroid/graphics/Paint;)V", "GetDrawRoundRect_FFFFFFLandroid_graphics_Paint_Handler")>]
abstract member DrawRoundRect : single * single * single * single * single * single * Android.Graphics.Paint -> unit
override this.DrawRoundRect : single * single * single * single * single * single * Android.Graphics.Paint -> unit

Parameters

left
Single
top
Single
right
Single
bottom
Single
rx
Single

The x-radius of the oval used to round the corners

ry
Single

The y-radius of the oval used to round the corners

paint
Paint

The paint used to draw the roundRect

Attributes

Remarks

Draw the specified round-rect using the specified paint. The roundrect will be filled or framed based on the Style in the paint.

Java documentation for android.graphics.Canvas.drawRoundRect(float, float, float, float, float, float, android.graphics.Paint).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to