---
title: "Size"
description: "Constructs a [Size] from the given width and height"
type: "function"
---

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


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


```kotlin
inline fun Size(width: Float, height: Float) = Size(packFloats(width, height))
```


Constructs a `Size` from the given width and height



