Method PixelToDip
PixelToDip(SizeI, double?)
Converts SizeI to device-independent units.
public static SizeD PixelToDip(SizeI value, double? scaleFactor = null)
Parameters
value
SizeISizeI in pixels.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelToDip(RectI[], double?)
Converts array of RectI to device-independent units.
public static RectD[] PixelToDip(RectI[] rects, double? scaleFactor = null)
Parameters
rects
RectI[]Array of RectI in pixels.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
- RectD[]
PixelToDip(PointI, double?)
Converts PointI to device-independent units.
public static PointD PixelToDip(PointI value, double? scaleFactor = null)
Parameters
value
PointIPointI in pixels.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelToDip(RectI, double?)
Converts RectI to device-independent units.
public static RectD PixelToDip(RectI value, double? scaleFactor = null)
Parameters
value
RectIRectI in pixels.
scaleFactor
double?Scale factor used for the conversion. Optional. If not specified, default value is used.
Returns
PixelToDip(int, double?)
Converts pixels to device-independent units.
public static double PixelToDip(int value, double? scaleFactor = null)