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

resize

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

Resizing image

Parameters

width - desire width

height - desire height

mode - Resizing mode

isExcludeAlpha - true - exclude alpha (copy as RGB_565) false - include alpha (copy as ARGB_888)