---
title: "ClipOp"
description: "Defines how a new clip region should be merged with the existing clip region.

Used by [Canvas.clipRect]."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class ClipOp internal constructor(@Suppress("unused") private val value: Int)
```


Defines how a new clip region should be merged with the existing clip region.

Used by `Canvas.clipRect`.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Difference = ClipOp(0)
```


Subtract the new region from the existing region.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Intersect = ClipOp(1)
```


Intersect the new region from the existing region.





