scalePixels

expect fun scalePixels(pixels: Short): Short

Scale the given number of pixels (a distance or size) relative to a 160 DPI display considering the DPI of the default display. It ensures that e.g. lv_dpx(100) will have the same physical size regardless to the DPI of the display.

Return

The scale using the following formula: pixels x currentDpi / 160

Parameters

pixels

The number of pixels to scale.

actual fun scalePixels(pixels: Short): Short
actual fun scalePixels(pixels: Short): Short