RRect
fun RRect(rrect: RRect, direction: PathDirection = PathDirection.CLOCKWISE, startIndex: Int = if (direction == PathDirection.CLOCKWISE) 6 else 7): Path
Creates a rounded rectangle path.
Return
new rounded rectangle Path
Parameters
rrect
rounded rectangle
direction
direction to wind the rounded rectangle
startIndex
starting point index
fun RRect(bounds: Rect, rx: Float, ry: Float, direction: PathDirection = PathDirection.CLOCKWISE): Path
Creates a rounded rectangle path from bounds and corner radii.
Return
new rounded rectangle Path
Parameters
bounds
rectangle bounds
rx
x-axis radius of corners
ry
y-axis radius of corners
direction
direction to wind the rounded rectangle