spToPixel

fun Float.spToPixel(context: Context): Float

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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