CircleCropTransformation

class CircleCropTransformation : Transformation

A Transformation that crops an image using a centered circle as the mask.

If you're using Jetpack Compose, use Modifier.clip(CircleShape) instead of this transformation as it's more efficient.

Constructors

CircleCropTransformation
Link copied to clipboard
fun CircleCropTransformation()

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): <ERROR CLASS>
transform
Link copied to clipboard
open suspend override fun transform(input: Bitmap, size: Size): Bitmap
Apply the transformation to input and return the transformed Bitmap.

Properties

cacheKey
Link copied to clipboard
open override val cacheKey: String
The unique cache key for this transformation.