Outline.SetRoundRect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetRoundRect(Rect, Single) |
Convenience for |
| 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
The rectangle supplying the rounded outline's bounds.
- radius
- Single
The requested corner radius; zero selects square corners.
- 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
The left edge of the rounded rectangle's bounds.
- top
- Int32
The top edge of the rounded rectangle's bounds.
- right
- Int32
The right edge of the rounded rectangle's bounds.
- bottom
- Int32
The bottom edge of the rounded rectangle's bounds.
- radius
- Single
The requested corner radius; zero selects square corners.
- 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.