---
title: "toAndroidRectF"
description: "Creates a new instance of [android.graphics.RectF] with the same bounds specified in the given
[Rect]"
type: "function"
---

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


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


```kotlin
fun Rect.toAndroidRectF(): android.graphics.RectF
```


Creates a new instance of `android.graphics.RectF` with the same bounds specified in the given
`Rect`



