---
title: "toRect"
description: "Converts an [IntRect] to a [Rect]"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun IntRect.toRect(): Rect
```


Converts an `IntRect` to a `Rect`



