摘要:
public static Drawable toRoundCorner(Drawable drawable, int pixels) { BitmapDrawable bd = (BitmapDrawable)drawable; Bitmap bitmap = bd.getBitmap(); Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(output); final int c... 阅读全文