protected CiPaint assignPaint() {
CiPaint paint = new CiPaint(drawingContext.getPaint());
paint.setStyle(Paint.Style.STROKE);
paint.setAntiAlias(true);
paint.setStrokeJoin(Paint.Join.ROUND);
paint.setStrokeCap(Paint.Cap.ROUND);
if (smoothRadius > 0) {
CornerPathEffect effect = new CornerPathEffect(smoothRadius);
if (paint.getPathEffect() == null) {
paint.setPathEffect(effect);
} else {
ComposePathEffect composeEffect = new ComposePathEffect(paint.getPathEffect(), effect);
paint.setPathEffect(composeEffect);
}
}
return paint;
}
SmoothStrokeMode.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:cidrawing
作者:
评论列表
文章目录