transform

open fun transform(transformation: Transformation<Bitmap>): T

Applies the given Transformation for Bitmaps to the default types (Bitmap, android.graphics.drawable.BitmapDrawable, and ) and throws an exception if asked to transform an unknown type.

This will override previous calls to dontTransform.

See also

Parameters

transformation

Any Transformation for Bitmaps.


open fun transform(transformations: Array<Transformation<Bitmap>>): T

Applies the given Transformations in the given order for Bitmaps to the default types (Bitmap, android.graphics.drawable.BitmapDrawable, and ) and throws an exception if asked to transform an unknown type.

This will override previous calls to dontTransform.

See also

Parameters

transformations

One or more Transformations for Bitmaps.


open fun <Y> transform(resourceClass: Class<Y>, transformation: Transformation<Y>): T

Applies the given Transformation for any decoded resource of the given type and throws if asked to transform an unknown resource type.

This will override previous calls to dontTransform.

See also

Parameters

resourceClass

The type of resource to transform.

transformation

The Transformation to apply.