public Bitmap horverImage(Bitmap bitmap, boolean H, boolean V)
{
int bmpWidth = bitmap.getWidth();
int bmpHeight = bitmap.getHeight();
Matrix matrix = new Matrix();
if (H)
matrix.postScale(-1, 1); //水平翻转H
if (V)
matrix.postScale(1, -1); //垂直翻转V
if (H && V)
matrix.postScale(-1, -1); //水平&垂直翻转HV
return Bitmap.createBitmap(bitmap, 0, 0, bmpWidth, bmpHeight, matrix, true);
//matrix.postRotate(-90); //旋转-90度
}