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
pxdouble
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
sizePxSizeDouble
Returns
ConvertPixelsToDips(float)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
public float ConvertPixelsToDips(float px)
Parameters
pxfloat
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
sizePxSizeFloat