[android-components](../index.md) / [mozilla.components.support.ktx.android.content.res](index.md) / [pxToDp](./px-to-dp.md)

# pxToDp

`fun <ERROR CLASS>.~~pxToDp~~(pixels: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/content/res/Resources.kt#L17)
**Deprecated:** Use Int.dpToPx instead

Converts a value in density independent pixels (pxToDp) to the actual pixel values for the display.

**Deprecated**
use Int.dpToPx instead.

