Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 imageView 来显示 DICOM 图像。最近有一个请求将绘制线条、矩形或徒手绘制的能力放入图像中。
我已经阅读了几篇文章并得出结论,我应该重写 imageView 的 onDraw 方法。
完成此操作后,我遇到了另一个问题,我无法缩放这些图像。
如何解决这个问题呢?
您可以在 onDraw 方法中实现缩放和捏合。http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html