public Bitmap scaleCenterCrop(Bitmap source, int newHeight, int newWidth) { int sourceWidth = source.getWidth(); int sourceHeight = source.getHeight(); // Compute the scaling factors to fit the new height and width, respectively. // To cover the final image, the final scaling will be the bigger // of these two. float xScale = (float) newWidth / sourceWidth; float yScale = (float) newHeight / sou..
안드로이드에서 이미지를 사용하기 위해서, 보통 Bitmap 클래스를 사용하게 됩니다. 안드로이드 앱에서 이미지에 대한 Thumbnail이나 이미지의 부분을 자르기 위해서는 Bitmap 클래스로 원하는 사이즈나 원하는 부분을 쉽게 잘라낼 수 있습니다. 아래의 BitmapUtil 클래스는, Bitmap 클래스를 이용해서 이미지를 줄이거나 늘리는 기능을 제공하는 유틸리티 클래스입니다. 아래의 기능정도면, 정말 특이한 요구사항(우측아래를 기준으로 100×100 이미지를 가져와라, 이런건 간단하게 아래의 cropCenter 메쏘드를 약간 변경하면 쉽게 적용)이 없다면, 아래의 유틸리티 클래스만으로도 상당히 많은 부분을 커버할 수 있을것 같습니다. import android.graphics.Bitmap; /** *..
- crop 커스텀 하기 좋은거 https://github.com/jdamcd/android-crop - 심플하고 카메라 or 갤러리 선택가능 https://github.com/lorensiuswlt/AndroidImageCrop - crop이랑 rotation 기능 같이 있음 https://github.com/Jhuster/ImageCropper - 아직 안해봄 https://github.com/lvillani/android-cropimage - 아직안해봄 (카메라 or 갤러리 선택가능한거 같은데 커스텀이 가능한듯 ) https://github.com/ryanhoo/PhotoCropper - 멀티픽 actionbar 이용한듯 ? https://github.com/giljulio/android-multi..
long mSeconds = [self.strTime longLongValue];NSTimeInterval seconds = mSeconds / 1000; NSDate *mDate = [NSDate dateWithTimeIntervalSince1970:seconds]; NSDateFormatter *dateFormatter = [NSDateFormatter new]; [dateFormatter setDateFormat:@"yyyy.MM.dd"];
App Icons on iPad and iPhone https://developer.apple.com/library/ios/qa/qa1686/_index.html 아이폰 전용 앱 크기 이미지 크기(px) 파일명 사용처 앱스토어 Ad Hoc 512x512 iTunesArtwork 아이튠스 앱 목록 포함 안함 선택이지만 추천 1024x1024 iTunesArtwork@2x 레티나 기기의 아이튠스 앱 목록 포함 안함 선택이지만 추천 120x120 Icon-60@2x.png 아이폰 홈 스크린/레티나 아이팟 터치 필수 필수 180x180 Icon-60@3x.png 아이폰6 플러스 홈 스크린 선택이지만 추천 선택이지만 추천 76x76 Icon-76.png 아이패드 홈 스크린 선택이지만 추천 선택이지만 추천 152x..
- Total
- Today
- Yesterday
- xcode8
- 가평휴게소
- ShardPreferenes
- ios
- 봄봄봄
- cocoapods
- crop
- 휴게소
- 아이콘 사이즈
- 킹스맨
- 코드 하이라이트
- serialize
- 엘지
- 남자화장품
- 안드로이드
- git flow
- 막국수
- 참나무숯불닭갈비
- gitgub
- custom font
- ListView
- resize
- xcode7
- keyboard
- Android
- Re:NK
- Xcode
- 리엔케이
- 안드로이드 라이브러리
- android jar
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |