Im trying to merge to bitmap using this code
Bitmap bitmapMerged = Bitmap.createBitmap(
w, h,
bitmapOriginal.getConfig());
Canvas canvasMerged = new Canvas(bitmapMerged);
canvasMerged.drawBitmap(bitmapOriginal, 0, 0, null);
canvasMerged.drawBitmap(bitmapSecond, bitmapOriginal.getWidth(), 0, null);
It merge successfully, my next goal is to rotate the merged bitmap so I used this code
Matrix matrix = new Matrix();
matrix.postRotate(10);
canvasMerged.setMatrix(matrix);
But the image is cutted/trim the side it seems it didnt fit in how to fix this?
question from:
https://stackoverflow.com/questions/65641503/how-to-fix-cutted-trimmed-side-on-canvas-bitmap 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…