toBitmap

fun <Error class: unknown class>.toBitmap(width: Int, height: Int, config: Bitmap.Config): Bitmap
expect fun Image.toBitmap(width: Int = this.width, height: Int = this.height): Bitmap

Convert an Image into a Bitmap.

fun Image.toBitmap(width: Int, height: Int, colorType: ColorType, colorAlphaType: ColorAlphaType, colorSpace: ColorSpace?): Bitmap
actual fun Image.toBitmap(width: Int, height: Int): Bitmap