Table of Contents

Method PixelFromDip

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

PixelFromDip(SizeD, double?)

Converts device-independent units to pixels.

public static SizeI PixelFromDip(SizeD value, double? scaleFactor = null)

Parameters

value SizeD

Value in device-independent units.

scaleFactor double?

Scale factor used for the conversion. Optional. If not specified, default value is used.

Returns

SizeI

PixelFromDip(PointD, double?)

Converts device-independent units to pixels.

public static PointI PixelFromDip(PointD value, double? scaleFactor = null)

Parameters

value PointD

Value in device-independent units.

scaleFactor double?

Scale factor used for the conversion. Optional. If not specified, default value is used.

Returns

PointI

PixelFromDip(RectD, double?)

Converts device-independent units to pixels.

public static RectI PixelFromDip(RectD value, double? scaleFactor = null)

Parameters

value RectD

Value in device-independent units.

scaleFactor double?

Scale factor used for the conversion. Optional. If not specified, default value is used.

Returns

RectI

PixelFromDip(double, double?)

Converts device-independent units to pixels.

public static int PixelFromDip(double value, double? scaleFactor = null)

Parameters

value double

Value in device-independent units.

scaleFactor double?

Scale factor.

Returns

int