开发者

Rotate Arrow 180 degree android

how can i rotate image with 180 degree like ::

开发者_如何学Python

Rotate Arrow 180 degree android

Thanks

Nik


Use this

            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);

Cheers!!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜