Transformation

interface Transformation

An interface for making transformations to an image's pixel data.

NOTE: If DrawableResult.drawable or DecodeResult.drawable is not a BitmapDrawable, it will be converted to one. This will cause animated drawables to only draw the first frame of their animation.

See also

Functions

transform
Link copied to clipboard
abstract suspend fun transform(input: Bitmap, size: Size): Bitmap
Apply the transformation to input and return the transformed Bitmap.

Properties

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

Inheritors

CircleCropTransformation
Link copied to clipboard
RoundedCornersTransformation
Link copied to clipboard