Rotating an image around a specified point doesn't work! (Android)

后端 未结 2 708
攒了一身酷
攒了一身酷 2021-01-16 08:42

I\'m rotating an ImageView with postRotate(float degrees, float px, float py), setting px and py to a few differnt values including (0,0) and (imgView.getHeight(),imgView.ge

2条回答
  •  死守一世寂寞
    2021-01-16 09:22

    A slight "hack", you could probably adjust the image size using something like Paint.net or Gimp, depending on your OS. That would make the image appear to spin on another point. This solution would be pointless if you are planning on using a lot of images though. This is a spinning cube tutorial using opengl.

提交回复
热议问题