BitmapFactory.Options options = new BitmapFactory.Options();
options.inMutable = true; //加上這個選項!!!! (API level 11以上)
Bitmap bm = BitmapFactory.decodeByteArray(data, 0, data.length, options);
Canvas canvas = new Canvas(bm); // 不然會有錯誤產生!
.......
沒有留言:
張貼留言