I want rotate image in both the ways Clockwise as well as Anti clock wise. I had try but not rotate image both the way, so plz give me solution for my problem if you know..
Matrix mat = new Matrix(); mat.preRotate(angle);///in degree Bitmap mBitmap = Bitmap.createBitmap(originalBmp, 0, 0, modWidth, modHeight, mat, true); //originalBmp -> original img as bitmap //modHeight -> new height //modWidth -> new width
use the above code.