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

Parameters

value
Type: C1.C1Preview..::..RectangleD
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 Rectangle structure converted to pixels.

See Also