CenterCrop
Scale the image so that either the width of the image matches the given width and the height of the image is greater than the given height or vice versa, and then crop the larger dimension to match the given dimension.
Does not maintain the image's aspect ratio
Functions
Link copied to clipboard
fun transform( context: Context, resource: Resource<Bitmap>, outWidth: Int, outHeight: Int): Resource<Bitmap>
Content copied to clipboard
abstract fun transform( context: Context, resource: Resource<T>, outWidth: Int, outHeight: Int): Resource<T>
Content copied to clipboard
Transforms the given resource and returns the transformed resource.
Link copied to clipboard
Adds all uniquely identifying information to the given digest.