Loading a resource to a mutable bitmap

后端 未结 5 1991
面向向阳花
面向向阳花 2020-12-05 10:52

I am loading a bitmap from a resource like so:

 Bitmap mBackground = BitmapFactory.decodeResource(res,R.drawable.image);

What I want to do

5条回答
  •  無奈伤痛
    2020-12-05 11:18

    There are several ways to create a copy of it. This thread might help you: http://www.anddev.org/how_to_modify_the_image_file-t513.html

提交回复
热议问题