encode

fun encode(bmp: Bitmap32, quality: Int = 50): ByteArray(source)