Udostępnij za pośrednictwem


Outline.SetRoundRect Method

Definition

Overloads

SetRoundRect(Rect, Single)

Convenience for #setRoundRect(int, int, int, int, float)

SetRoundRect(Int32, Int32, Int32, Int32, Single)

Sets the Outline to the rounded rect defined by the input coordinates and corner radius.

SetRoundRect(Rect, Single)

Convenience for #setRoundRect(int, int, int, int, float)

[Android.Runtime.Register("setRoundRect", "(Landroid/graphics/Rect;F)V", "")]
public void SetRoundRect (Android.Graphics.Rect rect, float radius);
[<Android.Runtime.Register("setRoundRect", "(Landroid/graphics/Rect;F)V", "")>]
member this.SetRoundRect : Android.Graphics.Rect * single -> unit

Parameters

rect
Rect
radius
Single
Attributes

Remarks

Convenience for #setRoundRect(int, int, int, int, float)

Java documentation for android.graphics.Outline.setRoundRect(android.graphics.Rect, float).

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

SetRoundRect(Int32, Int32, Int32, Int32, Single)

Sets the Outline to the rounded rect defined by the input coordinates and corner radius.

[Android.Runtime.Register("setRoundRect", "(IIIIF)V", "")]
public void SetRoundRect (int left, int top, int right, int bottom, float radius);
[<Android.Runtime.Register("setRoundRect", "(IIIIF)V", "")>]
member this.SetRoundRect : int * int * int * int * single -> unit

Parameters

left
Int32
top
Int32
right
Int32
bottom
Int32
radius
Single
Attributes

Remarks

Sets the Outline to the rounded rect defined by the input coordinates and corner radius.

Passing a zero radius is equivalent to calling #setRect(int, int, int, int)

Java documentation for android.graphics.Outline.setRoundRect(int, int, int, int, float).

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