📜  位图旋转 90 度 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.380000             🧑  作者: Mango

代码示例1
Matrix matrix = new Matrix();

matrix.postRotate(90);

Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmapOrg, width, height, true);

Bitmap rotatedBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix, true);