如何使我的ImageView缩放?使我、缩放、ImageView

2023-09-12 07:27:26 作者:把酒言清欢

谁能帮关于如何使用矩阵scaletype放大了的ImageView以及如何使用翻译方法,以便它可以集中在中心?我已经使用web视图,以便能够使用缩放和滚动功能,我需要尝试,但它是不是很好看。

Can anyone help on how to use the matrix scaletype to zoom an imageview and also how to use the translate method so that it can be focused at the center? I have tried using webview to be able to use the zooming and scrolling functionalities i needed but it is not nice to look at.

推荐答案

我发现了一个教程的从博客分为4个部分如何缩放和平移的图像,这是相当不错的。它拥有C $ CS可以下载和一些说明示例$。它也有其他的教程。

I found a tutorial divided into 4 parts from a blog on how to zoom and pan an image and it is quite nice. It has sample codes that can be downloaded and some explanations. It also have other tutorials.

更新 - 指出,新的链接

Update - pointed the links to the new ones.

更新2 - 我发现了一个随时可以使用类ImageView的缩放功能。你看看这里。

Update 2 - I found a ready-to-use class for ImageView zooming functionality. You check it out here.