【问题标题】:How to use BitmapRegionDecoder in android 2.2 and lower如何在 android 2.2 及更低版本中使用 BitmapRegionDecoder
【发布时间】:2012-07-09 06:32:53
【问题描述】:

我想在我的应用程序中使用 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 bitmap


【解决方案1】:

我在this project 的描述中读到,为 API

关于 SO,Dianne Hackborn 说这很重要。

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

编辑:我刚刚找到this question on SO,也许这会有所帮助。

【讨论】:

    【解决方案2】:

    看看my other (detailed) answer关于BitmapRegionDecoderCompat(API 8+)。

    【讨论】:

    • 只需投票关闭类似问题作为重复,而不是复制(或引用)您的答案。
    猜你喜欢
    • 2012-07-27
    • 1970-01-01
    • 2019-10-20
    • 2021-11-10
    • 2016-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多