---
# System prepended metadata

title: '<font style="text-shadow:0px 0px 15px #FF37FD;">Path.FillType</font>'
tags: [Kotlin, Android developer]

---

<font style="text-shadow:0px 0px 15px #FF37FD;">Path.FillType</font>
===
###### tags: `Android developer` `Kotlin`
 <font color="Brown">android.graphics.Path.FillType</font>
 
 <font color="Brown">填充路徑的方式</font>
 
## <font color="sandybrown">Enum</font>

### <font color="#990DFF">EVEN_ODD</font>

:::info
去除交集部分
:::

### <font color="#990DFF">INVERSE_EVEN_ODD</font>

:::info
取不相交的區域
:::

### <font color="#990DFF">INVERSE_WINDING</font>

:::info
取路徑之外的區域
:::

### <font color="#990DFF">WINDING</font>

:::info
相交時，取相交部分
:::

:::warning

**Ex:**
```kotlin=
Path().fillType=Path.FillType.EVEN_ODD
Path().fillType=Path.FillType.INVERSE_EVEN_ODD
Path().fillType=Path.FillType.INVERSE_WINDING
Path().fillType=Path.FillType.WINDING
```

:::danger
**輸出結果 :**
![](https://i.imgur.com/tU7PwB1.png)
:::
