Skip to content

Instantly share code, notes, and snippets.

@ryanbateman
ryanbateman / gist:3899841
Created October 16, 2012 15:06
Round and frame an image
public static Bitmap round(Context context, Bitmap source) {
// Use the height and width of our source image as a basis
int width = source.getWidth();
int height = source.getHeight();
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(WHITE);