bitmap rotate 90 deg

Solutions on MaxInterview for bitmap rotate 90 deg by the best coders in the world

showing results for - "bitmap rotate 90 deg"
Leah
12 Mar 2020
1Matrix matrix = new Matrix();
2
3matrix.postRotate(90);
4
5Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmapOrg, width, height, true);
6
7Bitmap rotatedBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix, true);
8