roundedCorners
Creates a bitmap from a source bitmap and rounds the corners.
Return
a Bitmap similar to inBitmap but with rounded corners.
Deprecated
Width and height are unused and ignored. Use roundedCorners instead.
Parameters
the source bitmap to use as a basis for the created bitmap.
the width of the generated bitmap.
the height of the generated bitmap.
the corner radius to be applied (in device-specific pixels).
Throws
if roundingRadius, width or height is 0 or less.
Creates a bitmap from a source bitmap and rounds the corners.
This method does NOT resize the given Bitmap, it only rounds it's corners. To both resize and round the corners of an image, consider transform and/or .
Return
a Bitmap similar to inBitmap but with rounded corners.
Parameters
the source bitmap to use as a basis for the created bitmap.
the corner radius to be applied (in device-specific pixels).
Throws
if roundingRadius, width or height is 0 or less.
Creates a bitmap from a source bitmap and rounds the corners, applying a potentially different [X, Y] radius to each corner.
This method does NOT resize the given Bitmap, it only rounds it's corners. To both resize and round the corners of an image, consider transform and/or .
Return
a Bitmap similar to inBitmap but with rounded corners.
Parameters
the source bitmap to use as a basis for the created bitmap.
top-left radius
top-right radius
bottom-right radius
bottom-left radius