[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.FromRU

FromRU Method

FromRU(double, UnitTypeEnum, float)

Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.

Declaration
public double FromRU(double value, UnitTypeEnum destType, float destDpi)
Parameters
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 destType is Pixel.

Returns
Type Description
double

The converted value.

FromRU(RectangleD, UnitTypeEnum, float, float)

Converts a RectangleD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.

Declaration
public RectangleD FromRU(RectangleD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Parameters
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 destType is Pixel.

float destDpiY

The vertical destination resolution (DPI), required only if destType is Pixel.

Returns
Type Description
RectangleD

A RectangleD structure converted to target units.

FromRU(Region, UnitTypeEnum, float, float)

Transforms (scales) a Region object expressed in the current document's ResolvedUnit units so that it uses other UnitTypeEnum units.

Declaration
public void FromRU(Region region, UnitTypeEnum destType, float destDpiX, float destDpiY)
Parameters
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 destType is Pixel.

float destDpiY

The vertical destination resolution (DPI), required only if destType is Pixel.

FromRU(OffsetsD, UnitTypeEnum, float, float)

Converts a OffsetsD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.

Declaration
public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Parameters
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 destType is Pixel.

float destDpiY

The vertical destination resolution (DPI), required only if destType is Pixel.

Returns
Type Description
OffsetsD

A OffsetsD structure converted to target units.

FromRU(double, UnitTypeEnum)

Converts a double value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.

Declaration
public double FromRU(double value, UnitTypeEnum destType)
Parameters
Type Name Description
double value

The value to convert, expressed in ResolvedUnit units.

UnitTypeEnum destType

The destination UnitTypeEnum units to convert to.

Returns
Type Description
double

The value converted to destType units.

FromRU(RectangleD, UnitTypeEnum)

Converts a RectangleD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.

Declaration
public RectangleD FromRU(RectangleD value, UnitTypeEnum destType)
Parameters
Type Name Description
RectangleD value

The value to convert, expressed in ResolvedUnit units.

UnitTypeEnum destType

The destination UnitTypeEnum units to convert to.

Returns
Type Description
RectangleD

A RectangleD structure converted to target units.

FromRU(OffsetsD, UnitTypeEnum)

Converts a OffsetsD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units, using CreationDpi resolution if destType is Pixel.

Declaration
public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType)
Parameters
Type Name Description
OffsetsD value

The value to convert, expressed in ResolvedUnit units.

UnitTypeEnum destType

The destination UnitTypeEnum units to convert to.

Returns
Type Description
OffsetsD

A OffsetsD structure converted to target units.

FromRU(PointD, UnitTypeEnum, float, float)

Converts a PointD value expressed in the current document's ResolvedUnit units to other UnitTypeEnum units.

Declaration
public PointD FromRU(PointD value, UnitTypeEnum destType, float destDpiX, float destDpiY)
Parameters
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 destType is Pixel.

float destDpiY

The vertical destination resolution (DPI), required only if destType is Pixel.

Returns
Type Description
PointD

A PointD structure converted to target units.

FromRU(double, float, bool)

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

Declaration
public int FromRU(double value, float destDpi, bool truncate)
Parameters
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).

Returns
Type Description
int

The converted value.

FromRU(RectangleD, float, float, bool)

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

Declaration
public Rectangle FromRU(RectangleD value, float destDpiX, float destDpiY, bool truncate)
Parameters
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).

Returns
Type Description
Rectangle

A Rectangle structure converted to pixels.

FromRU(OffsetsD, float, float, bool)

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

Declaration
public OffsetsI FromRU(OffsetsD value, float destDpiX, float destDpiY, bool truncate)
Parameters
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).

Returns
Type Description
OffsetsI

A OffsetsI structure converted to pixels.