---
title: "DpSize"
description: "Constructs a [DpSize] from [width] and [height] [Dp] values."
type: "function"
---

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


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


```kotlin
fun DpSize(width: Dp, height: Dp): DpSize
```


Constructs a `DpSize` from `width` and `height` `Dp` values.



