다음을 통해 공유


PaintDrawable.SetCornerRadii(Single[]) Method

Definition

Specify radii for each of the 4 corners.

[Android.Runtime.Register("setCornerRadii", "([F)V", "GetSetCornerRadii_arrayFHandler")]
public virtual void SetCornerRadii (float[]? radii);
[<Android.Runtime.Register("setCornerRadii", "([F)V", "GetSetCornerRadii_arrayFHandler")>]
abstract member SetCornerRadii : single[] -> unit
override this.SetCornerRadii : single[] -> unit

Parameters

radii
Single[]

the x and y radii of the corners

Attributes

Remarks

Specify radii for each of the 4 corners. For each corner, the array contains 2 values, [X_radius, Y_radius]. The corners are ordered top-left, top-right, bottom-right, bottom-left

Java documentation for android.graphics.drawable.PaintDrawable.setCornerRadii(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