Java画圆角折线

PathEffect effect = new CornerPathEffect(70f);
paint.setPathEffect(effect);
paint.setStrokeWidth(width * 0.2f);

path.moveTo(width/2,0f);
path.lineTo(width/2, height/2);
path.lineTo(0f,height/2);

你可能感兴趣的:(图形,java)