Method ConvertPixelsToDipsInt
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
ConvertPixelsToDipsInt(int)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
The result is rounded to the nearest whole integer.
public int ConvertPixelsToDipsInt(int px)
Parameters
px
int
Returns
ConvertPixelsToDipsInt(int, int)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
The result is rounded to the nearest whole integer.
public SizeInt32 ConvertPixelsToDipsInt(int widthPx, int heightPx)
Parameters
Returns
ConvertPixelsToDipsInt(SizeInt32)
Converts a measurement from pixels to DIPs (device-independent pixels) using the current scaling factor.
The result is rounded to the nearest whole integer.
public SizeInt32 ConvertPixelsToDipsInt(SizeInt32 sizePx)
Parameters
sizePx
SizeInt32