This documentation is for the old version. Go to the latest Graphics Mill docs

UnitConverter.ConvertUnitsToUnits Method

Converts a value measured in one device-independent unit to another one.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function ConvertUnitsToUnits ( _
	resolution As Single, _
	sourceValue As Single, _
	sourceUnit As Unit, _
	destinationUnit As Unit _
) As Single
C#
public static float ConvertUnitsToUnits(
	float resolution,
	float sourceValue,
	Unit sourceUnit,
	Unit destinationUnit
)

Parameters

resolution

Type: System.Single

A resolution in DPI.
sourceValue

Type: System.Single

A value measured in sourceUnit which should be converted to destinationUnit.
sourceUnit

Type: Aurigma.GraphicsMill.Unit

A source unit.
destinationUnit

Type: Aurigma.GraphicsMill.Unit

A destination unit.

Return Value

A converted value.

See Also

Reference