如何在Android 2.2及更低版本中使用BitmapRegionDecoder

问题描述:

我想在我的应用程序中使用BitmapRegionDecoder类来处理非常大的图像。我的应用程序是在android 2.2(API-8)下开发的,但BitmapRegionDecoder在android 2.2和更低版本中不可用,我不能将android 2.2更改为2.3或更高版本,它必须是仅限android 2.2。那么有没有其他方法可以在我的应用程序中使用BitmapRegionDecoder或BitmapRegionDecoder的任何jar文件或BitmapRegionDecoder的替代jar来执行BitmapRegionDecoder的相同任务。如何在Android 2.2及更低版本中使用BitmapRegionDecoder

+0

可能重复http://*.com/questions/10035169 /何灿我使用-bitmapregiondecoder鳕鱼e-in-android-2-2-2-froyo) – corsair992 2015-07-20 20:12:55

我读过在this project的描述,该BitmapRegionDecoder对API < 10娱乐需要大量使用JNI的:

上SO,戴安娜Hackborn说,这是不平凡。

所以,你可以尝试一下,但我担心它会太复杂,将其返回到低版本:(

编辑:我刚刚发现this question on SO,也许这将帮助

。看看my other (detailed) answerBitmapRegionDecoderCompat(API 8+)。

的[我如何使用的Android 2.2.2(升级Froyo)BitmapRegionDecoder代码?](
+0

只需投票即可关闭与重复相似的问题,而不是复制(或引用)您的答案。 – corsair992 2015-07-20 20:14:47