CircleCropTransformation

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

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val cacheKey: String

The unique cache key for this transformation.

Functions

Link copied to clipboard
open suspend override fun transform(input: Bitmap, size: <Error class: unknown class>): Bitmap

Apply the transformation to input and return the transformed Bitmap.