1. allocationByteCount 和 getByteCount 的区别 Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.scan_error); Log.d(TAG,"bitmap = " + bitmap.getAllocationByteCount()); Log.d(TAG,"byteCount = " + bitmap.getByteCount());
getByteCount();// 新申请图片的大小
getAllocationByteCount();//复用后bitmap的大小,
如何复用bitmap?getByteCount 和getAllocationByteCount(); 不同