Table of Contents

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

double

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

widthPx double
heightPx double

Returns

SizeDouble

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

SizeDouble

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

float

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

widthPx float
heightPx float

Returns

SizeFloat

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

Returns

SizeFloat