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 | 31 |
Tags
- Firebase
- Exception
- CSS사용법
- DataTable
- jQuery
- Kotlin
- css
- JavaScript
- android error
- apache gzip
- Android
- html
- 안드로이드
- fragment
- android fragment
- Android Apk 이름 변경
- Eclipse
- tomcat
- Java
- spring
- java error
- release unsigned
- error
- Android Apk
- Program type already present
- Android Apk 이름
- FLUTTER
- release Apk
- R프로그래밍
- MySQL
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 |
Comments