clipCanvasToPath
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