Table of Contents

Method PixelFromDip

Namespace
Alternet.Skia
Assembly
Alternet.UI.Common.dll

PixelFromDip(float, float)

Converts device-independent units to pixels.

public static int PixelFromDip(float value, float scaleFactor)

Parameters

value float

Value in device-independent units.

scaleFactor float

Scale factor.

Returns

int

Converted value.

PixelFromDip(SKSize, float)

Converts device-independent units to pixels.

public static SKSizeI PixelFromDip(SKSize value, float scaleFactor)

Parameters

value SKSize

Value in device-independent units.

scaleFactor float

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

Returns

SKSizeI