toUIImage

fun ERROR CLASS: Symbol not found for Bitmap.toUIImage(scale: Double = 1.0): ERROR CLASS: Symbol not found for UIImage

Converts bitmap to UIImage with given scale.

scale is a number of bitmap pixels per point, so bitmap rendered for 40x40 points on a screen with 3.0 density should be converted with scale = 3.0.