不可以直接编辑bitmap
Bitmap workingBitmap = Bitmap.createBitmap(chosenFrame);
//复制一份用来编辑
Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);
Canvas canvas = new Canvas(mutableBitmap);
不可以直接编辑bitmap
Bitmap workingBitmap = Bitmap.createBitmap(chosenFrame);
//复制一份用来编辑
Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);
Canvas canvas = new Canvas(mutableBitmap);