Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Paint paint = new Paint();
- paint.setAntiAlias(true);
- paint.setColor(WHITE);
- Bitmap clipped = Bitmap.createBitmap(width, height, ARGB_8888);
- Canvas canvas = new Canvas(clipped);
- canvas.drawRoundRect(new RectF(0, 0, width, height), radius, radius, paint);
- paint.setXfermode(new PorterDuffXfermode(DST_IN));
Add Comment
Please, Sign In to add comment