검색결과 리스트
createScaledBitmap에 해당되는 글 1건
- 2012.03.20 android 에서 Bitmap.createScaledBitmap 시 exif 정보 유지하기 76
private static void copyExifWithoutLengthWidth(ExifInterface src,ExifInterface dest) {
for (Field f:ExifInterface.class.getFields()) {
String name = f.getName();
if (!name.startsWith("TAG_")) {
continue;
}
String key = null;
try {
key = (String)f.get(null);
} catch (Exception e) {
continue;
}
if (key == null) {
continue;
}
if (key.equals(ExifInterface.TAG_IMAGE_LENGTH) || key.equals(ExifInterface.TAG_IMAGE_WIDTH)) {
continue;
}
String value = src.getAttribute(key);
if (value == null) {
continue;
}
dest.setAttribute(key, value);
}
}
ExifInterface originalExif = new ExifInterface(originalFile.getAbsolutePath());
ExifInterface finalExif = new ExifInterface(finalFile.getAbsolutePath());
copyExifWithoutLengthWidth(originalExif,finalExif);
finalExif.saveAttributes();
android 에서 헤더섹션이 떠있는 리스트뷰 (PinnedHeaderListView) 구현. (31) | 2012.03.26 |
---|---|
android ADT r17 x86 에뮬레이터 (20) | 2012.03.23 |
android webview 에서 파일 업로드 하기 (32) | 2012.02.29 |
ant 를 이용해서 android 에뮬레이터 컨트롤하기 (91) | 2012.02.24 |
ant 를 이용한 android 자동 빌드환경 구성 (41) | 2012.01.30 |
RECENT COMMENT