Method PixelFromDip
- Namespace
- Alternet.UI.Extensions
- Assembly
- Alternet.UI.Common.dll
PixelFromDip(float, float?)
Converts value in device-independent units to pixels using the specified scale factor.
public static int PixelFromDip(this float value, float? scaleFactor = null)
Parameters
valuefloatValue to convert.
scaleFactorfloat?Scale factor. Optional. If not specified, the default scale factor is used.