[]
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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. |