Transformation

abstract class Transformation

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

NOTE: If ImageFetchResult.image or DecodeResult.image 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

ImageRequest.Builder.transformations

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val cacheKey: String

The unique cache key for this transformation.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract suspend fun transform(input: Bitmap, size: <Error class: unknown class>): Bitmap

Apply the transformation to input and return the transformed Bitmap.