也许这会创造你想要的
paint.setColor(color); // set the colorpaint.setStrokeWidth(size); // set the sizepaint.setDither(true); // set the dither to truepaint.setStyle(Paint.Style.STROKE); // set to STOKEpaint.setStrokeJoin(Paint.Join.ROUND); // set the join to round you wantpaint.setStrokeCap(Paint.Cap.ROUND); // set the paint cap to round toopaint.setPathEffect(new CornerPathEffect(10) ); // set the path effect when they join.paint.setAntiAlias(true); // set anti alias so it smooths
:)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)