Load large images into Bitmap?

前端 未结 5 2223
耶瑟儿~
耶瑟儿~ 2021-01-02 09:23

I\'m trying to make a basic application that displays an image from the camera, but I when I try to load the .jpg in from the sdcard with BitmapFactory.decodeFile

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-02 09:57

    Here is another solution that uses inSampleSize and dynamically determines the image resolution to use based on available memory:

    http://bricolsoftconsulting.com/handling-large-images-on-android/

提交回复
热议问题