toBitmap

private fun ByteArray.toBitmap(width: Int, height: Int, channels: Int): Bitmap(source)