Rounded Corners Transformation
class RoundedCornersTransformation(@Px topLeft: Float = 0.0f, @Px topRight: Float = 0.0f, @Px bottomLeft: Float = 0.0f, @Px bottomRight: Float = 0.0f) : Transformation
A Transformation that crops the image to fit the target's dimensions and rounds the corners of the image.
If you're using Jetpack Compose, use Modifier.clip(RoundedCornerShape(radius))
instead of this transformation as it's more efficient.
Parameters
top Left
The radius for the top left corner.
top Right
The radius for the top right corner.
bottom Left
The radius for the bottom left corner.
bottom Right
The radius for the bottom right corner.