Notice
Recent Posts
Recent Comments
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 | 29 | 30 |
Tags
- java error
- R프로그래밍
- Android Apk
- html
- css
- release unsigned
- release Apk
- Program type already present
- FLUTTER
- android fragment
- MySQL
- error
- Kotlin
- android error
- Android Apk 이름 변경
- tomcat
- JavaScript
- Firebase
- Exception
- jQuery
- Eclipse
- Android
- apache gzip
- fragment
- 안드로이드
- Android Apk 이름
- spring
- Java
- DataTable
- CSS사용법
Archives
- Today
- Total
selfstarter
Android drawable image에서 bitmap으로 변환 본문
Android drawable image에서 bitmap으로 변환
drawable image -> bitmap
bitmap -> drawable image로 변환
Context context = getApplicationContext();
Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.girl, null);
Bitmap bitmap = ((BitmapDrawable)drawable).getBitmap();
Drawable drawable1 = new BitmapDrawable(context.getResources(), bitmap);
'App > Android' 카테고리의 다른 글
How to make Simple CustomDialog in Android (0) | 2020.06.27 |
---|---|
constraintlayout weight (0) | 2020.06.20 |
Android Example with Fragment and ToolBar (0) | 2020.06.04 |
Android fragment 정리 (0) | 2020.06.04 |
XML에 선언된 Fragment Java객체로 가져오기 (0) | 2020.05.31 |