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

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

Visual Basic
Public Shared Function ConvertUnitsToPixels ( _
	resolution As Single, _
	sourceValue As Single, _
	sourceUnit As Unit _
) As Integer
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