Method ConvertPixelsToDips
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
ConvertPixelsToDips(double)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public double ConvertPixelsToDips(double px)
Parameters
px
double
Returns
ConvertPixelsToDips(double, double)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public SizeDouble ConvertPixelsToDips(double widthPx, double heightPx)
Parameters
Returns
ConvertPixelsToDips(SizeDouble)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public SizeDouble ConvertPixelsToDips(SizeDouble sizePx)
Parameters
sizePx
SizeDouble
Returns
ConvertPixelsToDips(float)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public float ConvertPixelsToDips(float px)
Parameters
px
float
Returns
ConvertPixelsToDips(float, float)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public SizeFloat ConvertPixelsToDips(float widthPx, float heightPx)
Parameters
Returns
ConvertPixelsToDips(SizeFloat)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public SizeFloat ConvertPixelsToDips(SizeFloat sizePx)
Parameters
sizePx
SizeFloat