Table of Contents

Method PixelToInch

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

PixelToInch(int, float?)

Converts int value (pixels) to float value (inches).

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

Parameters

value int

Value in pixels to convert.

scaleFactor float?

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

Returns

float

Converted value.

PixelToInch(SizeI, float?)

Converts SizeI value (pixels) to SizeD value (inches).

public static SizeD PixelToInch(SizeI value, float? scaleFactor = null)

Parameters

value SizeI

Value in pixels to convert.

scaleFactor float?

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

Returns

SizeD

Converted value (inches).