Displaying images and managing memory in android

前端 未结 2 1626
时光取名叫无心
时光取名叫无心 2021-01-07 09:14

I wrote a program that at any time displays 8 user selected images on the screen. Each image is taken from its original form and scaled down to a uniform size. In order to d

2条回答
  •  心在旅途
    2021-01-07 09:57

    @matthew-willis I do not think you can use outWidth and outHeight to scale a bitmap. I believe they are output parameters only: they report the size of the bitmap created after the fact--setting them prior to decoding has no effect. You should use inSampleSize if you want to scale as you decode. George

提交回复
热议问题