Skip to main content

Home/ Android Dev/ Contents contributed and discussions participated by Luke Shan

Contents contributed and discussions participated by Luke Shan

Luke Shan

Drawable to Bitmap By Hong - 8 views

Drawable Bitmap
started by Luke Shan on 27 Mar 10 no follow-up yet
  • Luke Shan
     
    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);
1 - 1 of 1
Showing 20 items per page