circle = new Path();
circle.addCircle(150, 150, 100, Direction.CW);
private static final String QUOTE = "Now is the time for all " +
"good men to come to the aid of their country." ;
canvas.drawPath(circle, cPaint);
canvas.drawTextOnPath(QUOTE, circle, 0, 20, tPaint);
在Canvas上绘制路径并使用路径绘制文本
本文介绍如何在Canvas中创建路径并使用该路径来绘制文本,包括使用特定方向绘制圆,并在圆路径上绘制字符串。
3281

被折叠的 条评论
为什么被折叠?



