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

key
Link copied to clipboard
abstract fun key(): String

Return a unique key for this transformation.

transform
Link copied to clipboard
abstract suspend fun transform(pool: BitmapPool, input: Bitmap, size: Size): Bitmap

Apply the transformation to input and return the transformed Bitmap.

Inheritors

BlurTransformation
Link copied to clipboard
CircleCropTransformation
Link copied to clipboard
GrayscaleTransformation
Link copied to clipboard
RoundedCornersTransformation
Link copied to clipboard