rotate

fun Bitmap.rotate(degrees: Int): Bitmap

Rotates a bitmap, creating a new bitmap. Beware of memory allocations.