Method PixelFromDip
PixelFromDip(SizeD, double?)
Converts device-independent units to pixels.
public static SizeI PixelFromDip(SizeD value, double? scaleFactor = null)
Parameters
value
SizeDValue in device-independent units.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelFromDip(PointD, double?)
Converts device-independent units to pixels.
public static PointI PixelFromDip(PointD value, double? scaleFactor = null)
Parameters
value
PointDValue in device-independent units.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelFromDip(RectD, double?)
Converts device-independent units to pixels.
public static RectI PixelFromDip(RectD value, double? scaleFactor = null)
Parameters
value
RectDValue in device-independent units.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelFromDip(double, double?)
Converts device-independent units to pixels.
public static int PixelFromDip(double value, double? scaleFactor = null)