Converts a double value expressed in the current document's ResolvedUnit units to Pixel units with resolution specified by destDpi.

Depending on the truncate parameter, the converted value is either simply truncated, or rounded (slower but more precise).

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public int FromRU(
	double value,
	float destDpi,
	bool truncate
)
Visual Basic
Public Function FromRU ( _
	value As Double, _
	destDpi As Single, _
	truncate As Boolean _
) As Integer

Parameters

value
Type: System..::..Double
The value to convert, expressed in ResolvedUnit units.
destDpi
Type: System..::..Single
The destination resolution (DPI).
truncate
Type: System..::..Boolean
true to truncate the converted value, false to round it (slower but more precise).

Return Value

The converted value.

See Also