Android, move bitmap along a path?

后端 未结 3 1849
無奈伤痛
無奈伤痛 2020-11-27 21:23

I would like to know if it\'s possible to select coordinates from a path to draw a bitmap over time, for example, I have an image of a sun, and I would like to move it, over

3条回答
  •  旧时难觅i
    2020-11-27 21:44

    I'm thinking of one solution:

             _
           /   \
    

    If your arc has this kind of shape (meaning less than half a circle and positioned horizontaly) then you could iterate the x value and for that x get the y that's on the path. Then move your bitmap to that position.

提交回复
热议问题