Table of Contents

Method PixelFromDip

Namespace
Alternet.UI.Extensions
Assembly
Alternet.UI.Common.dll

PixelFromDip(float, float?)

Converts value in device-independent units to pixels using the specified scale factor.

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

Parameters

value float

Value to convert.

scaleFactor float?

Scale factor. Optional. If not specified, the default scale factor is used.

Returns

int