fromPx

fun fromPx(unit: LengthUnit, value: Double, settings: <Error class: unknown class>? = null): Double

Converts @value from pixels to @unit.

Return

the length in @unit

Since

1.4

Parameters

unit

a length unit

value

a value in pixels

settings

settings to use, or NULL for default settings