transferBitmap32ToCGImage

fun transferBitmap32ToCGImage(bmp: Bitmap32, colorSpace: CGColorSpaceRef? = null): CGImageRef?

Returned image must be deallocated with CGImageRelease