旋转箭头180度android

时间:2011-10-01 07:17:58

标签: android

如何旋转180度的图像,如::

enter image description here

感谢
NIK

1 个答案:

答案 0 :(得分:3)

使用此

            int w = oldBitmap.getWidth();
    int h = oldBitmap.getHeight();
    String filePath = null;
    Matrix mtx = new Matrix();

    mtx.postRotate(180);

    oldBitmap = Bitmap.createBitmap(oldBitmap, 0, 0, w, h, mtx, true);

干杯!!!