android bitmap mutable

mutable : 易变的,不定的

mutable 作用 :  控制bitmap的setPixel方法能否使用,也就是外界能否修改bitmap的像素。

Bitmap.createBitmap(mWidth, mHeight, Config.ARGB_8888) 为 mutable 为true

BimapFactory.decodeResource() 得到的mutable 为false, 要想其为true

一般会

BimtapFactory.decodeResource().copy(configu_argb_8888, true);

原文地址:https://www.cnblogs.com/pengxinglove/p/4347115.html