Skip to main content
/
Android Dev
/
Drawable to Bitmap By Hong
Drawable to Bitmap By Hong
- 8 views
Drawable
Bitmap
started by
Luke Shan
on 27 Mar 10
#1
Luke Shan
on 27 Mar 10
Bitmap bitmap = Bitmap.createBitmap(width, height, true);
Drawable iconDrawable = packageManager.getActivityIcon(resolveInfo.activityInfo); Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, width, height);
drawable.draw(canvas);
Bitmap bitmap = Bitmap.createBitmap(width, height, true);
Drawable iconDrawable = packageManager.getActivityIcon(resolveInfo.activityInfo); Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, width, height);
drawable.draw(canvas);
...
Cancel
#4
Vincent Tsao
on 29 Mar 10
啊~~~,一直没有留意App Buddy是良子大哥做的啊,哈哈,5星了, "Luke Shan"一下没让我联想起"良子"来 Orz
啊~~~,一直没有留意App Buddy是良子大哥做的啊,哈哈,5星了, "Luke Shan"一下没让我联想起"良子"来 Orz
...
Cancel
To Top
Start a New Topic »
« Back to the Android Dev group
Start a New Topic
Drawable iconDrawable = packageManager.getActivityIcon(resolveInfo.activityInfo); Canvas canvas = new Canvas(bitmap);
drawable.setBounds(0, 0, width, height);
drawable.draw(canvas);