renderAsBitmap

suspend fun renderAsBitmap(width: Int, height: Int): Bitmap?

Renders the visual to a bitmap of the provided width and height.

Return

a Bitmap, or null if the render failed.

Parameters

width
the width of the bitmap to be generated
height
the height of the bitmap to be generated