fitCenter
open fun fitCenter( pool: BitmapPool, inBitmap: Bitmap, width: Int, height: Int): Bitmap
Content copied to clipboard
An expensive operation to resize the given Bitmap down so that it fits within the given dimensions maintain the original proportions.
Return
A new Bitmap shrunk to fit within the given dimensions, or toFit if toFit's width or height matches the given dimensions and toFit fits within the given dimensions
Parameters
pool
The BitmapPool obtain a bitmap from.
inBitmap
The Bitmap to shrink.
width
The width in pixels the final image will fit within.
height
The height in pixels the final image will fit within.