PrintDocument for WinForms
FromRU(OffsetsD,Single,Single,Boolean) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス > FromRU メソッド : FromRU(OffsetsD,Single,Single,Boolean) メソッド
The value to convert, expressed in C1PrintDocument.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).
Converts a OffsetsD value expressed in the current document's C1PrintDocument.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).

シンタックス
'宣言
 
Public Overloads Function FromRU( _
   ByVal value As OffsetsD, _
   ByVal destDpiX As System.Single, _
   ByVal destDpiY As System.Single, _
   ByVal truncate As System.Boolean _
) As OffsetsI
'使用法
 
Dim instance As C1PrintDocument
Dim value As OffsetsD
Dim destDpiX As System.Single
Dim destDpiY As System.Single
Dim truncate As System.Boolean
Dim value As OffsetsI
 
value = instance.FromRU(value, destDpiX, destDpiY, truncate)
public OffsetsI FromRU( 
   OffsetsD value,
   System.float destDpiX,
   System.float destDpiY,
   System.bool truncate
)

パラメータ

value
The value to convert, expressed in 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).

戻り値の型

A OffsetsI structure converted to pixels.
参照

C1PrintDocument クラス
C1PrintDocument メンバ
オーバーロード一覧