Android – accelerate zoom in ImageView

I am currently working on very large images (7-10mb), which cannot be resized or compressed for many reasons

Now, our idea is to display them in the custom ImageView, so that users can double-click zoom, pinch zoom, etc

I use this library to do my work: https://github.com/MikeOrtiz/TouchImageView

I have tried other libraries, but others are still slow. Someone can give me some instructions / suggestions to make it faster (even write my own C implementation)?

I'm a little lost in all these "matrix", "flig", "scale" things. I don't know what I should touch to make it faster. If you know other faster libraries (or how to use custom Android implementation, it's really fast), that's great

resolvent:

Have you ever tried to use the deep zoom function of ion library?

https://github.com/koush/ion

If you don't want to use OpenGL, or the above library doesn't work, you can also try it http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html Class. That is, it tracks the user's "position" (viewport and zoom level) and decodes the area from the main thread, pushing it into the canvas every time the user changes input

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>