ImageView image = (ImageView) findViewById(R.id.image);
bitmapDrawable bitmapDrawable = (BitmapDrawable) this.getResources().getDrawable(R.drawable.image);
Bitmap bitmap = bitmapDrawable.getBitmap();
image.setImageBitmap(BitmapUtil.toRoundBitmap(bitmap));
public class BitmapUtil {
public static Bitmap toRoundBitmap(Bitmap bitmap) {
int width = bitmap.getWidth();
int height = bitmap.getHeight();
float roundPx;
float left, top, right, bottom, dst_left, dst_top, dst_right, dst_bottom;
if (width