开发者

Android - Draw Picture over ImageView

开发者 https://www.devze.com 2023-03-25 08:39 出处:网络
I have pretty complex custom ImageView and on the other hand I have开发者_JAVA百科 Picture object that I want to draw it on the ImageView\'s canvas? Is this possible? The Picture object is not to be c

I have pretty complex custom ImageView and on the other hand I have开发者_JAVA百科 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消