Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path addRect 添加了大小两个Rect,只能绘制会一个矩形 #91

Open
ZYZDC05F opened this issue Aug 30, 2018 · 0 comments
Open

Comments

@ZYZDC05F
Copy link

 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 修改为不同的就可以两个都能绘制出来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant