-
- All Implemented Interfaces:
-
coil.transform.Transformation
public final class CircleCropTransformation implements 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.
-
-
Constructor Summary
Constructors Constructor Description CircleCropTransformation()
-
Method Summary
-
-
Method Detail
-
getCacheKey
String getCacheKey()
The unique cache key for this transformation.
The key is added to the image request's memory cache key and should contain any params that are part of this transformation (e.g. size, scale, color, radius, etc.).
-
transform
Bitmap transform(Bitmap input, Size size)
- Parameters:
input- The input Bitmap to transform.size- The size of the image request.
-
hashCode
<ERROR CLASS> hashCode()
-
-
-
-