Table of Contents

Method ConvertDipsToPixelsInt

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

ConvertDipsToPixelsInt(int)

Converts a measurement from DIPs (device-independent pixels) to pixels using the current scaling factor.

The result is rounded to the nearest whole integer. If the input is non-zero then the output is guaranteed to be non-zero.

public int ConvertDipsToPixelsInt(int dips)

Parameters

dips int

Returns

int

ConvertDipsToPixelsInt(int, int)

Converts a measurement from DIPs (device-independent pixels) to pixels using the current scaling factor.

The result is rounded to the nearest whole integer. If the input is non-zero then the output is guaranteed to be non-zero.

public SizeInt32 ConvertDipsToPixelsInt(int widthDips, int heightDips)

Parameters

widthDips int
heightDips int

Returns

SizeInt32

ConvertDipsToPixelsInt(SizeInt32)

Converts a measurement from DIPs (device-independent pixels) to pixels using the current scaling factor.

The result is rounded to the nearest whole integer. If the input is non-zero then the output is guaranteed to be non-zero.

public SizeInt32 ConvertDipsToPixelsInt(SizeInt32 sizeDips)

Parameters

sizeDips SizeInt32

Returns

SizeInt32