안드로이드에서 전면카메라의 경우 상하 Flip (upside-down) 된 상태로 전달되는데...이경우 jpeg 이미지 저장하고 후처리를 해줄 수 있다... // upside down when front camera operated.. if( mFrontCamera == true ) { String photopath = mPathName; Bitmap bmp = BitmapFactory.decodeFile(photopath); Matrix matrix = new Matrix(); matrix.postRotate(180); bmp = Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), matrix, true); FileOutputStream fOut; try { fOut = new FileOutputStream(photopath); .......
↧