UnitConverter.ConvertUnitsToPixels Method

Converts a value measured in specified device-independent unit to pixels.

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

Syntax

C#
public static int ConvertUnitsToPixels(
	float resolution,
	float sourceValue,
	Unit sourceUnit
)

Parameters

resolution

Type: System.Single

A resolution in DPI used to convert sourceUnit to pixels.
sourceValue

Type: System.Single

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

Type: Aurigma.GraphicsMill.Unit

A source unit.

Return Value

A value converted to pixels.

See Also

Reference