GcsSloop / GcsSloop/AndroidNote
Path addRect 添加了大小两个Rect,只能绘制会一个矩形
Open
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
Path path = new Path();
path.addRect(-100, -100, 100, 100, Path.Direction.CW); // 添加小矩形
path.addRect(-200, -200, 200, 200, Path.Direction.CW); // 添加大矩形
canvas.drawPath(path, paint); // 绘制 Path
这段代码只能绘制出一个矩形,如果把两者的Direction 修改为不同的就可以两个都能绘制出来。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.