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