How to erase path area from canvas (Android)
I need to crop corners on ImageView . Not to round them but erase triangles from each corner. Seems like the only way to do that is to override onDraw method and erase these areas from canvas using Path . The problem is I have not solid color background, so I need ERASE these areas but not to fill them with some color. I use following code for that: @Override protected void onDraw(Canvas canvas) { Path path = new Path(); path.moveTo(0, 0); path.lineTo(20, 0); path.lineTo(0, 20); path.close(); Paint paint = new Paint(); paint.setAntiAlias(true); paint.setXfermode(new PorterDuffXfermode