0
특정 기기에서 촬영 한 사진을 저장하면 이상한 선으로 저장됩니다. 그래서 여기있다이 이미지의 모양을 설명하는 방법을 모르고 있습니다 :
내 코드는 대부분의 장치에서 완벽하게 작동을하지만 우리는 우리의 두 사용자가 다음과 같은 장치와 말을 있었다.
1. HTC 썬더 볼트
2. HTC 영감이
아무도 이런 일이 얼마나 알고 있나요?
Android Bitmap이 이상한 선을 저장합니다.
PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
mPreview.mCamera.startPreview();
Log.e(TAG, "onPictureTaken - jpegCallback");
try {
// start camera saving system
CameraPhoneStorageSystem camStorageSys = new CameraPhoneStorageSystem(
mContext);
FileOutputStream out = null;
String str = CameraPhoneStorageSystem
.returnImageNewNameForExternalMemory();
galleryAddPic(str);
out = new FileOutputStream(str);
// mutableBitmap.compress(CompressFormat.JPEG, 85, out);
out.write(data, 0, data.length);
out.flush();
out.close();
out = null;
Toast.makeText(mContext, "saved..", Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(
mContext,
"Error: Problem Saving Image.. Please check device memory",
Toast.LENGTH_SHORT).show();
Log.e("saving", "problem saving images", e);
} catch (Exception e) {
// fail
Log.d(TAG, "ERROR: " + e.getMessage());
} finally {
anyPicturesTaken = true;
progressBar.setVisibility(View.GONE);
snapButton.setVisibility(ImageButton.VISIBLE);
Runtime.getRuntime().gc();
}
}
};
어떤 도움 주셔서 감사합니다 ...
장치가 해당 이미지를 지원하는이 링크를 확인하지 않기 때문에이