Table of Contents

Method DefaultConvert

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

DefaultConvert(GraphicsUnit, GraphicsUnit, float, float, GraphicsType)

Default conversion method.

public static float DefaultConvert(GraphicsUnit from, GraphicsUnit to, float dpi, float nSrc, GraphicsUnitConverter.GraphicsType type = GraphicsType.Undefined)

Parameters

from GraphicsUnit

GraphicsUnit of the value which is converted.

to GraphicsUnit

GraphicsUnit of the result.

dpi float

Number of dots per inch.

nSrc float

Value to convert.

type GraphicsUnitConverter.GraphicsType

Type of the graphics.

Returns

float