spToPixel

fun Float.spToPixel(context: Context): Float

Gets the pixel value for a Float in Scaled Pixels

Return

the number of pixels equal to this amount of Scaled Pixels for this device

Parameters

context

the Context of the window to render the pixels