RichUtils / pyxis.uzuki.live.richutilskt.utils / android.graphics.Bitmap

Extensions for android.graphics.Bitmap

resize

fun Bitmap.resize(width: Int, height: Int, mode: ResizeMode = ResizeMode.AUTOMATIC, isExcludeAlpha: Boolean = false): Bitmap

Resizing image

toRoundCorner

fun Bitmap.toRoundCorner(radius: Float): Bitmap?

Make bitmap corner