coil-base / coil.transform / RoundedCornersTransformation

RoundedCornersTransformation

class RoundedCornersTransformation :Transformation

A Transformation that crops the image to fit the target's dimensions and rounds the corners of the image.

Parameters

topLeft - The radius for the top left corner.

topRight - The radius for the top right corner.

bottomLeft - The radius for the bottom left corner.

bottomRight - The radius for the bottom right corner.

Constructors

Name Summary
<init> RoundedCornersTransformation(radius:Float)
A Transformation that crops the image to fit the target's dimensions and rounds the corners of the image.RoundedCornersTransformation(topLeft:Float= 0f, topRight:Float= 0f, bottomLeft:Float= 0f, bottomRight:Float= 0f)

Functions

Name Summary
equals fun equals(other:Any?):Boolean
hashCode fun hashCode():Int
key Return a unique key for this transformation.fun key():String
toString fun toString():String
transform Apply the transformation to input.suspend fun transform(pool:BitmapPool, input:Bitmap, size:Size):Bitmap