本文介绍了Android的 - 绘制图片在ImageView的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有pretty复杂的自定义的ImageView并在另一方面,我有我要画它的ImageView画布上的图片对象?这可能吗?图片对象是不以任何其他类型的,因为那将失去的质量和员工进行转换,这就是为什么我用图片去..
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..
感谢
推荐答案
您至少有2个选项:
1 - 从ImageView的Retriev位图。从它创建帆布:
1 - Retriev bitmap from ImageView. Create canvas from it:
Canvas canvas = new Canvas(mImage);
画出画布上。
2 - 把透明的自定义视图/ SurfaceView过的ImageView和借鉴它
2 - Put transparent custom View/SurfaceView over ImageView and draw on it.
这篇关于Android的 - 绘制图片在ImageView的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!