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