Table of Contents

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

int

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

widthPx int
heightPx int

Returns

SizeInt32

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

Returns

SizeInt32