2014-04-16 4 views
0

그때 이미지 품질이 여기에 이미지 품질 손실

을 손실의 sdcard에 이미지를 저장 같은

Bitmap bitmap2 = extras.getParcelable("data"); 
File file = new File(path); 
FileOutputStream fOut = new FileOutputStream(file); 
bitmap2.compress(Bitmap.CompressFormat.JPEG, 100, fOut); 
fOut.flush(); 
fOut.close(); 
+0

무엇이 bitmap2입니까 ?? –

+0

그것의 안드로이드 기본 자르기를 사용하여 후에있어 com.android.camera.action.CROP –

+1

에 대한 croup 그냥 foloowing lib를 사용하여 그것의 너무 쉽게 https://github.com/biokys/cropimage –

답변

1

내 코드입니다 무손실 압축 형식 인 PNG :

bitmap2.compress(Bitmap.CompressFormat.PNG, 100, fOut); 
+0

여전히 동일한 문제를 변경했습니다. –