//避免拍照時旋轉照片 把他轉回來
Matrix matrix = new Matrix();
matrix.setRotate(90.f);
//壓縮(長寬除以2)
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 2;
//把File轉成Bitmap
Bitmap bitmap = BitmapFactory.decodeFile(addCaseVM.getCustGIDPicture1().getAbsolutePath(), options);
Bitmap newPhoto = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
addCaseVM.setCustGIDPicture1(saveImage(newPhoto));