ComponentOne ReportViewer for ASP.NET Web Forms
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / FromRU Method / FromRU(RectangleD,Single,Single,Boolean) Method
The value to convert, expressed in ResolvedUnit units.
The horizontal destination resolution (DPI).
The vertical destination resolution (DPI).
true to truncate the converted value, false to round it (slower but more precise).

In This Topic
    FromRU(RectangleD,Single,Single,Boolean) Method
    In This Topic
    Converts a RectangleD value expressed in the current document's ResolvedUnit units to a System.Drawing.Rectangle structure expressed in UnitTypeEnum.Pixel units, using the specified resolution.

    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 RectangleD, _
       ByVal destDpiX As System.Single, _
       ByVal destDpiY As System.Single, _
       ByVal truncate As System.Boolean _
    ) As System.Drawing.Rectangle
    public System.Drawing.Rectangle FromRU( 
       RectangleD value,
       System.float destDpiX,
       System.float destDpiY,
       System.bool truncate
    )

    Parameters

    value
    The value to convert, expressed in ResolvedUnit units.
    destDpiX
    The horizontal destination resolution (DPI).
    destDpiY
    The vertical destination resolution (DPI).
    truncate
    true to truncate the converted value, false to round it (slower but more precise).

    Return Value

    A System.Drawing.Rectangle structure converted to pixels.
    See Also