There is a statement in android canvas.drawBitmap(visiblePage, 0, 0, paint);
canvas.drawBitmap(visiblePage, 0, 0, paint);
When I add canvas.rotate(90), there is no effect. But if I wri
canvas.rotate(90)
I would simplify comm1x's Kotlin extension function even more:
fun Bitmap.rotate(degrees: Float) = Bitmap.createBitmap(this, 0, 0, width, height, Matrix().apply { postRotate(degrees) }, true)