Decode a part of Bitmap from file in Android
android, bitmap, java
Solution
is it possible that there is a solution for this?
for example , BitmapRegionDecoder .
It should work for API10 and above...
Usage:
BitmapRegionDecoder.newInstance(...).decodeRegion(...)
Problem
I have a file with a very large image: for example 9000x9000. I can't load the Bitmap in memory because the heap size. But I only need to display a small part of this bitmap for example the rect width=100-200 and height =200-400 (resulting size of the sub-bitmap =100x200) How can I retrieve this bitmap from the file? Note: I dont want to lose quality in the 100x200 image Thanks