CenterInside

open class CenterInside : BitmapTransformation

Returns the image with its original size if its dimensions match or are smaller than the target's, couple with CENTER_INSIDE in order to center it in Target. If not, then it is scaled so that one of the dimensions of the image will be equal to the given dimension and the other will be less than the given dimension (maintaining the image's aspect ratio).

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
fun transform(    context: Context,     resource: Resource<Bitmap>,     outWidth: Int,     outHeight: Int): Resource<Bitmap>
abstract fun transform(    context: Context,     resource: Resource<T>,     outWidth: Int,     outHeight: Int): Resource<T>
Transforms the given resource and returns the transformed resource.
Link copied to clipboard
open fun updateDiskCacheKey(messageDigest: MessageDigest)
Adds all uniquely identifying information to the given digest.

Properties

Link copied to clipboard
val CHARSET: Charset
Link copied to clipboard
val STRING_CHARSET_NAME: String