Skip to content

Commit 01582eb

Browse files
committed
Update
1 parent 2168e7e commit 01582eb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CustomView/Advance/[7]Path_Play.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,17 @@ toggleInverseFillType | 切换填充规则(即原有规则与反向规则之
243243
canvas.drawPath(path1, mDeafultPaint);
244244
```
245245

246+
前面演示了布尔运算的作用,接下来我们了解一下布尔运算的核心:布尔逻辑。
247+
248+
Path的布尔运算有五种逻辑,如下:
249+
250+
逻辑名称 | 中文 | 说明
251+
---|---|----
252+
DIFFERENCE | 差集 | Path1中减去Path2后剩下的部分
253+
REVERSE_DIFFERENCE | 差集 | Path2中减去Path1后剩下的部分
254+
INTERSECT | 交集 | Path1与Path2相交的部分
255+
UNION | 并集 | 包含全部Path1和Path2
256+
XOR | 异或 | 包含Path1与Path2但不包括两者相交的部分
246257

247258

248259

0 commit comments

Comments
 (0)