dpToPixel

fun Float.dpToPixel(context: Context): Float

Gets the pixel value for a Float in Device Independent Pixels

Return

the number of pixels equal to this amount of Device Independent Pixels for this device

Parameters

context

the Context of the window to render the pixels