---
title: "toComposeIntRect"
description: "Creates a new instance of [androidx.compose.ui.unit.IntRect] with the same bounds specified in
the given [android.graphics.Rect]"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun android.graphics.Rect.toComposeIntRect(): IntRect
```


Creates a new instance of `androidx.compose.ui.unit.IntRect` with the same bounds specified in
the given `android.graphics.Rect`



