Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / FromRU Method / FromRU(Double,Single,Boolean) Method
The value to convert, expressed in ResolvedUnit units.
The destination resolution (DPI).
true to truncate the converted value, false to round it (slower but more precise).

In This Topic
    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 destDpi.

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

    Syntax
    'Declaration
     
    Public Overloads Function FromRU( _
       ByVal value As Double, _
       ByVal destDpi As Single, _
       ByVal truncate As Boolean _
    ) As Integer
    public int FromRU( 
       double value,
       float destDpi,
       bool truncate
    )

    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