circleCrop

open fun circleCrop(    pool: BitmapPool,     inBitmap: Bitmap,     destWidth: Int,     destHeight: Int): Bitmap

Crop the image to a circle and resize to the specified width/height. The circle crop will have the same width and height equal to the min-edge of the result image.

Return

The resized Bitmap (will be recycled if recycled is not null).

Parameters

pool

The BitmapPool obtain a bitmap from.

inBitmap

The Bitmap to resize.

destWidth

The width in pixels of the final Bitmap.

destHeight

The height in pixels of the final Bitmap.