【发布时间】:2012-08-03 05:17:17
【问题描述】:
我尝试使用 Matrix 旋转位图,如果角度为 90 度而不是 90 度,则位图位置正在改变。
代码片段:
Matrix matrix = new Matrix();
matrix.postRotate(90);
Bitmap map= Bitmap.createBitmap(resizedBitmap, 0, 0,resizedBitmap.getWidth(), resizedBitmap.getHeight(),matrix, true);
你们能告诉我如何在不改变图像位置的情况下旋转图像吗?
谢谢。
【问题讨论】:
标签: android matrix bitmap image-rotation