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


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス > FromRU メソッド : FromRU(RectangleD,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 RectangleD 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 RectangleD, _
   ByVal destDpiX As System.Single, _
   ByVal destDpiY As System.Single, _
   ByVal truncate As System.Boolean _
) As System.Drawing.Rectangle
'使用法
 
Dim instance As C1PrintDocument
Dim value As RectangleD
Dim destDpiX As System.Single
Dim destDpiY As System.Single
Dim truncate As System.Boolean
Dim value As System.Drawing.Rectangle
 
value = instance.FromRU(value, destDpiX, destDpiY, truncate)
public System.Drawing.Rectangle FromRU( 
   RectangleD 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 System.Drawing.Rectangle structure converted to pixels.
参照

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