局部核心代码:bitmap = Bitmap.createBitmap(mSize.x, mSize.y, Config.ARGB_8888); cacheBitmap = Bitmap.createBitmap(mSize.x, mSize.y, Config.ARGB_8888); cacheCanvas = new Canvas(); cacheCanvas.setBitmap(cacheBitmap); cacheCanvas.drawBitmap(bitmap, 0, 0, null); mSearchView.setImageBitmap(bitmap);
- 1楼r17171709昨天 17:13
- 用BitmapFactory.Option