[]
Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
public double FromRU(double value, UnitTypeEnum destType, float destDpi)
Public Function FromRU(value As Double, destType As UnitTypeEnum, destDpi As Single) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| float | destDpi | The destination resolution (DPI), required only if |
| Type | Description |
|---|---|
| double | The converted value. |
Converts a RectangleD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
public RectangleD FromRU(RectangleD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Public Function FromRU(value As RectangleD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As RectangleD
| Type | Name | Description |
|---|---|---|
| RectangleD | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| float | destDpiX | The horizontal destination resolution (DPI), required only if |
| float | destDpiY | The vertical destination resolution (DPI), required only if |
| Type | Description |
|---|---|
| RectangleD | A RectangleD structure converted to target units. |
Transforms (scales) a Region object expressed in the current document's ResolvedUnit units so that it uses other UnitTypeEnum units.
public void FromRU(Region region, UnitTypeEnum destType, float destDpiX, float destDpiY)
Public Sub FromRU(region As Region, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single)
| Type | Name | Description |
|---|---|---|
| Region | region | The Region to scale. |
| UnitTypeEnum | destType | The destination units to use. |
| float | destDpiX | The horizontal destination resolution (DPI), required only if |
| float | destDpiY | The vertical destination resolution (DPI), required only if |
Converts a OffsetsD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Public Function FromRU(value As OffsetsD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As OffsetsD
| Type | Name | Description |
|---|---|---|
| OffsetsD | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| float | destDpiX | The horizontal destination resolution (DPI), required only if |
| float | destDpiY | The vertical destination resolution (DPI), required only if |
| Type | Description |
|---|---|
| OffsetsD | A OffsetsD structure converted to target units. |
Converts a double value expressed in the current document's ResolvedUnit units
to other UnitTypeEnum units,
using CreationDpi resolution if destType is Pixel.
public double FromRU(double value, UnitTypeEnum destType)
Public Function FromRU(value As Double, destType As UnitTypeEnum) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| Type | Description |
|---|---|
| double | The value converted to |
Converts a RectangleD value expressed in the current document's ResolvedUnit units
to other UnitTypeEnum units,
using CreationDpi resolution if destType is Pixel.
public RectangleD FromRU(RectangleD value, UnitTypeEnum destType)
Public Function FromRU(value As RectangleD, destType As UnitTypeEnum) As RectangleD
| Type | Name | Description |
|---|---|---|
| RectangleD | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| Type | Description |
|---|---|
| RectangleD | A RectangleD structure converted to target units. |
Converts a OffsetsD value expressed in the current document's ResolvedUnit units
to other UnitTypeEnum units,
using CreationDpi resolution if destType is Pixel.
public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType)
Public Function FromRU(value As OffsetsD, destType As UnitTypeEnum) As OffsetsD
| Type | Name | Description |
|---|---|---|
| OffsetsD | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| Type | Description |
|---|---|
| OffsetsD | A OffsetsD structure converted to target units. |
Converts a PointD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.
public PointD FromRU(PointD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Public Function FromRU(value As PointD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As PointD
| Type | Name | Description |
|---|---|---|
| PointD | value | The value to convert, expressed in ResolvedUnit units. |
| UnitTypeEnum | destType | The destination UnitTypeEnum units to convert to. |
| float | destDpiX | The horizontal destination resolution (DPI), required only if |
| float | destDpiY | The vertical destination resolution (DPI), required only if |
| Type | Description |
|---|---|
| PointD | A PointD structure converted to target units. |
Converts a double value expressed in the current document's ResolvedUnit units
to 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).
public int FromRU(double value, float destDpi, bool truncate)
Public Function FromRU(value As Double, destDpi As Single, truncate As Boolean) As Integer
| Type | Name | Description |
|---|---|---|
| double | value | The value to convert, expressed in ResolvedUnit units. |
| float | destDpi | The destination resolution (DPI). |
| bool | truncate | true to truncate the converted value, false to round it (slower but more precise). |
| Type | Description |
|---|---|
| int | The converted value. |
Converts a RectangleD value expressed in the current document's ResolvedUnit units to a Rectangle structure expressed in 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 Rectangle FromRU(RectangleD value, float destDpiX, float destDpiY, bool truncate)
Public Function FromRU(value As RectangleD, destDpiX As Single, destDpiY As Single, truncate As Boolean) As Rectangle
| Type | Name | Description |
|---|---|---|
| RectangleD | value | The value to convert, expressed in ResolvedUnit units. |
| float | destDpiX | The horizontal destination resolution (DPI). |
| float | destDpiY | The vertical destination resolution (DPI). |
| bool | truncate | true to truncate the converted value, false to round it (slower but more precise). |
| Type | Description |
|---|---|
| Rectangle | A Rectangle structure converted to pixels. |
Converts a OffsetsD value expressed in the current document's ResolvedUnit units to a Rectangle structure expressed in 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 OffsetsI FromRU(OffsetsD value, float destDpiX, float destDpiY, bool truncate)
Public Function FromRU(value As OffsetsD, destDpiX As Single, destDpiY As Single, truncate As Boolean) As OffsetsI
| Type | Name | Description |
|---|---|---|
| OffsetsD | value | The value to convert, expressed in ResolvedUnit units. |
| float | destDpiX | The horizontal destination resolution (DPI). |
| float | destDpiY | The vertical destination resolution (DPI). |
| bool | truncate | true to truncate the converted value, false to round it (slower but more precise). |
| Type | Description |
|---|---|
| OffsetsI | A OffsetsI structure converted to pixels. |