Table of Contents

Method ConvertSize

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

ConvertSize(GraphicsUnit, GraphicsUnit, SizeD, SizeD, GraphicsType)

Converts SizeD value to other GraphicsUnit.

public static SizeD ConvertSize(GraphicsUnit from, GraphicsUnit to, SizeD dpi, SizeD value, GraphicsUnitConverter.GraphicsType type = GraphicsType.Undefined)

Parameters

from GraphicsUnit

GraphicsUnit of the value which is converted.

to GraphicsUnit

GraphicsUnit of the result.

dpi SizeD

Number of dots per inch.

value SizeD

Value to convert.

type GraphicsUnitConverter.GraphicsType

Type of the graphics.

Returns

SizeD