반응형
Notice
Recent Posts
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- socket.io
- 워치
- JNI
- cloud-firestore
- Galaxy Watch
- Java8
- firebase-database
- git-push
- firebase-storage
- socket-server
- hung-up
- mqtt
- gradle
- socket-client
- TIZEN
- git
- BottomSheetDialog
- OZViewer
- NoSuchMethodError
- google-login
- mosquitto
- Firebase
- Dva
- 오즈뷰어
- Kotlin
- Android
- ozd
- Flavors
- ActivityResult-API
- AWS
Archives
- Today
- Total
Hyeyeon blog
[Android] ImageView로부터 Bitmap 가져오기 본문
반응형
if(imageView.drawable is BitmapDrawable) { val bitmap = (imageView.drawable as BitmapDrawable).bitmap } else { val drawable = binding.profileIv.drawable val bitmap = Bitmap.createBitmap(drawable.intrinsicWidth, drawable.intrinsicHeight, Bitmap.Config.ARGB_8888) }
728x90
'개발 > Android' 카테고리의 다른 글
[Android] Zxing으로 바코드 생성하기 (0) | 2020.11.25 |
---|---|
[Android] Bottom Sheet Dialog 에 RecyclerView 적용하기 (0) | 2020.11.25 |
[Android] 최근 사용 목록에 앱 화면 preview 안보이게 처리 (0) | 2020.11.24 |
[Android] View에 Fade In, Fade Out 애니메이션 적용하기 (0) | 2020.11.23 |
[Android] Mediarecorder.prepare() 시 FileNotFoundException 발생하는 경우 (0) | 2020.10.21 |
Comments