asBitmap

fun asBitmap(width: Int, height: Int, backgroundColor: Rgba? = null, activeColor: Rgba? = null, inactiveColor: Rgba? = null): Pair<Int, <Error class: unknown class>?>

Converts an image to Bitmap