Android - Rotate image around center point?

前端 未结 1 699
野的像风
野的像风 2021-01-27 11:10

How can I rotate a bitmap (not a view or canvas) around its center point when the user touches it and drags it?

I have tried loads of examples on stack overflow and none

相关标签:
1条回答
  • 2021-01-27 12:14

    Create Matrix then set rotate via setRotate(degrees). Then use this matrix when creating new Bitmap: Bitmap.createBitmap(..)

    0 讨论(0)
提交回复
热议问题