setRoundedCorners

fun setRoundedCorners(radiusPix: Float): Rect

Apply rounded corners to the rectangle

Limitations:

The radiusPix will be adjusted to be smaller than getWidth/2 and getHeight/2

radiusPix Will be ignored when rotation is applied (set to zero).

Return

this

Parameters

radiusPix

the corners radius in pixels