FromRU(OffsetsD,Single,Single,Boolean) Method
In This Topic
Converts a
C1.C1Preview.OffsetsD value expressed in the current document's
C1.C1Preview.C1PrintDocument.ResolvedUnit units to a
System.Drawing.Rectangle structure expressed in
C1.C1Preview.UnitTypeEnum.Pixel units, using the specified resolution.
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 OffsetsD, _
ByVal As Single, _
ByVal As Single, _
ByVal As Boolean _
) As OffsetsI
public OffsetsI FromRU(
OffsetsD ,
float ,
float ,
bool
)
Parameters
- value
- The value to convert, expressed in C1.C1Preview.C1PrintDocument.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
C1.C1Preview.OffsetsI structure converted to pixels.
See Also