Converts a OffsetsD value expressed in the current document's ResolvedUnit units to a Rectangle structure expressed in Pixel units, using the specified resolution.

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 OffsetsI FromRU(
	OffsetsD value,
	float destDpiX,
	float destDpiY,
	bool truncate
)
Visual Basic
Public Function FromRU ( _
	value As OffsetsD, _
	destDpiX As Single, _
	destDpiY As Single, _
	truncate As Boolean _
) As OffsetsI

Parameters

value
Type: C1.C1Preview..::..OffsetsD
The value to convert, expressed in ResolvedUnit units.
destDpiX
Type: System..::..Single
The horizontal destination resolution (DPI).
destDpiY
Type: System..::..Single
The vertical destination resolution (DPI).
truncate
Type: System..::..Boolean
true to truncate the converted value, false to round it (slower but more precise).

Return Value

A OffsetsI structure converted to pixels.

See Also