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

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