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