packagecom.hand.face.utils;importandroid.graphics.Bitmap;importandroid.graphics.Matrix;/** * Created by USER on 2016/12/10. */publicclassImageUtil{/** * 旋转图片 */publicstaticBitmapgetRotateBitmap(Bitmapb,floatrotateDegree){Matrixmatrix=newMatrix();matrix.postRotate((float)rotateDegree);BitmaprotaBitmap=Bitmap.createBitmap(b,0,0,b.getWidth(),b.getHeight(),matrix,false);returnrotaBitmap;}}