How to enlarge a high resolution bitmap?

I am trying to implement an image viewer using TouchImageView .

  • TouchImageView is placed in a fragment.
  • And I set a large image (2500x3000) to this TouchImageView , (loading using inSampleSize = 8).
  • Then I pinch the image on an enlarged scale, it is displayed with low resolution. (This is not surprising.)

However, I want to display a high resolution image when scaling, for example, the Android Gallery application. How to do it?

Thanks in advance.

+7
android pinchzoom
source share
3 answers

I was unable to find an ImageView implementation that supports scaling of large images, so I created one that splits the image and shows the minimum number of tiles with high resolution, replacing them when scaling and panning. Hope he does what you need.

https://github.com/davemorrissey/subsampling-scale-image-view

+11
source share

You can try the following: AndroidBigImage

+2
source share
+2
source share

All Articles