安卓:获取SD卡上的图像的缩略图,因为原始图像的乌里图像、缩略图、卡上、原始

2023-09-12 03:13:43 作者:用白色的~蜡笔画一场婚礼

所以,我已经得到了用户选择出了他的SD卡图像的图像的URI。我想要来显示图像的缩略图,因为很明显,图像可能是巨大的,占据整个屏幕。任何人都知道怎么样?

So i've got a Uri of an image the user chooses out of images off his SD card. And i'd like to display a thumbnail of that image, because obviously, the image could be huge and take up the whole screen. Anyone know how?

推荐答案

尝试:

的Andr​​oid如何创建运行时缩略图 Android:调整一个大的位图文件缩放的输出文件。 对于较大的图像 Android的图片消气 Android how to create runtime thumbnail Android: Resize a large bitmap file to scaled output file. Android Image Getter for Larger Images