0

我想从左到右和从右到左方向旋转图像。我正在使用以下代码来旋转图像。`matrix.postRotate(90);

        bitmap = Bitmap.createBitmap(bitmap_rotate, 0, 0,
                bitmap_rotate.getWidth(), bitmap_rotate.getHeight(),
                matrix, true);`

但它总是以相同的方向旋转图像。我想改变旋转方向。有什么办法可以改变方向。我用谷歌搜索了很多,但没有找到合适的。提前致谢。

4

1 回答 1

1

只需旋转 360 - yourAngle。

在你的情况下: matrix.postRotate(270);

于 2013-04-05T12:59:57.007 回答