RoundedCornersTransformation

class RoundedCornersTransformation(@Px() topLeft: Float, @Px() topRight: Float, @Px() bottomLeft: Float, @Px() bottomRight: Float) : 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

RoundedCornersTransformation
Link copied to clipboard
fun RoundedCornersTransformation(@Px() radius: Float)
RoundedCornersTransformation
Link copied to clipboard
fun RoundedCornersTransformation(@Px() topLeft: Float = 0f, @Px() topRight: Float = 0f, @Px() bottomLeft: Float = 0f, @Px() bottomRight: Float = 0f)
The radius for the top left corner.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
key
Link copied to clipboard
open override fun key(): String
Return a unique key for this transformation.
toString
Link copied to clipboard
open override fun toString(): String
transform
Link copied to clipboard
open suspend override fun transform(pool: BitmapPool, input: Bitmap, size: Size): Bitmap
Apply the transformation to input and return the transformed Bitmap.