Android - Draw Picture over ImageView

2019-09-02 09:13发布

I have pretty complex custom ImageView and on the other hand I have Picture object that I want to draw it on the ImageView's canvas? Is this possible? The Picture object is not to be converted in any other type since then it'll lose quality and staff, that's why I go with Picture..

Thanks

1条回答
在下西门庆
2楼-- · 2019-09-02 09:33

You have at least 2 options:

1 - Retriev bitmap from ImageView. Create canvas from it:

     Canvas canvas = new Canvas(mImage);

Draw on that canvas.

2 - Put transparent custom View/SurfaceView over ImageView and draw on it.

查看更多
登录 后发表回答