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).
this
the corners radius in pixels