scalePixels

expect open 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 object's display. It ensures that e.g. lv_dpx(100) will have the same physical size regardless to the DPI of the display.

Return

The number of pixels that the object has been scaled.

Parameters

pixels

The number of pixels to scale.

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