centerCrop
open fun centerCrop( pool: BitmapPool, inBitmap: Bitmap, width: Int, height: Int): Bitmap
Content copied to clipboard
A potentially expensive operation to crop the given Bitmap so that it fills the given dimensions. This operation is significantly less expensive in terms of memory if a mutable Bitmap with the given dimensions is passed in as well.
Return
The resized Bitmap (will be recycled if recycled is not null).
Parameters
pool
The BitmapPool to obtain a bitmap from.
inBitmap
The Bitmap to resize.
width
The width in pixels of the final Bitmap.
height
The height in pixels of the final Bitmap.