FromRU(Double,Single,Boolean) Method
In This Topic
Converts a
double value expressed in the current document's
ResolvedUnit units to
UnitTypeEnum.Pixel units with resolution specified by .
Depending on the parameter, the converted value is either simply truncated, or rounded (slower but more precise).
Syntax
'Declaration
Public Overloads Function FromRU( _
ByVal As System.Double, _
ByVal As System.Single, _
ByVal As System.Boolean _
) As System.Integer
public System.int FromRU(
System.double ,
System.float ,
System.bool
)
Parameters
- value
- The value to convert, expressed in ResolvedUnit units.
- destDpi
- The destination resolution (DPI).
- truncate
- true to truncate the converted value, false to round it (slower but more precise).
Return Value
The converted value.
See Also