BitmapFactory returns bigger image than source

后端 未结 4 1999
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 20:43

Hi i am creating a Bitmap from an png image named image.png. The image has the dimension 75 (width) x 92 (height). When I run this code:

Bitmap          


        
4条回答
  •  悲&欢浪女
    2020-12-28 21:24

    Bitmap thumbImage = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(context.getResources(), R.drawable.image), 640, 640, false);

提交回复
热议问题