clipCanvasToPath

fun clipCanvasToPath(canvas: Canvas, widthPx: Int, heightPx: Int): Boolean

Clips the input canvas to a rounded rectangle of the specified width and height, using the radii set in setCornersRadiiPx.

Return

whether the canvas was successfully clipped

Parameters

canvas

the canvas to be clipped

widthPx
heightPx