centerInside

open fun centerInside(    pool: BitmapPool,     inBitmap: Bitmap,     width: Int,     height: Int): Bitmap

If the Bitmap is smaller or equal to the Target it returns the original size, if not then fitCenter is called instead.

Return

returns input Bitmap if smaller or equal to target, or toFit if the Bitmap's width or height is larger than the given dimensions

Parameters

pool

The BitmapPool obtain a bitmap from.

inBitmap

The Bitmap to center.

width

The width in pixels of the target.

height

The height in pixels of the target.