Skip to content

Commit eecbd4c

Browse files
committed
Update
1 parent 23e43f9 commit eecbd4c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎CustomView/Advance/[8]Path_Play.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ startWithMoveTo | 起始点是否使用 moveTo | 用于保证截取
140140

141141
我们创建了一个 Path, 并在其中添加了一个矩形,现在我们想截取矩形中的一部分,就是下图中红色的部分。
142142

143-
> 矩形边长400dp,起始点在左上角
143+
> 矩形边长400dp,起始点在左上角,顺时针
144144
145145
![](http://ww2.sinaimg.cn/large/005Xtdi2jw1f4bohcxzhqj308c0etwej.jpg)
146146

@@ -162,6 +162,9 @@ startWithMoveTo | 起始点是否使用 moveTo | 用于保证截取
162162
canvas.drawPath(dst, mDeafultPaint); // 绘制 dst
163163
```
164164

165+
结果如下:
166+
167+
![](http://ww2.sinaimg.cn/large/005Xtdi2jw1f4bpmetj7wj308c0etdfu.jpg)
165168

166169
从上图可以看到我们成功到将需要到片段截取了出来,然而当 dst 中有内容时会怎样呢?
167170

0 commit comments

Comments
 (0)