[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.ToRU

ToRU Method

ToRU(double, UnitTypeEnum, float)

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

Declaration
public double ToRU(double value, UnitTypeEnum srcType, float srcDpi)
Parameters
Type Name Description
double value

The source value to convert.

UnitTypeEnum srcType

The unit of measurement used to express the source value.

float srcDpi

The source resolution (DPI) (used if srcType is Pixel).

Returns
Type Description
double

The double value expressed in ResolvedUnit units.

ToRU(RectangleD, UnitTypeEnum, float, float)

Converts a RectangleD structure expressed in specified UnitTypeEnum units to a RectangleD expressed in the current document's ResolvedUnit units.

Declaration
public RectangleD ToRU(RectangleD value, UnitTypeEnum srcType, float srcDpiX, float srcDpiY)
Parameters
Type Name Description
RectangleD value

The source value to convert.

UnitTypeEnum srcType

The unit of measurement used to express the source value.

float srcDpiX

The horizontal source resolution (DPI) (used if srcType is Pixel).

float srcDpiY

The vertical source resolution (DPI) (used if srcType is Pixel).

Returns
Type Description
RectangleD

The RectangleD expressed in ResolvedUnit units.

ToRU(double, UnitTypeEnum)

Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's ResolvedUnit units, using CreationDpi as the source resolution if srcType is Pixel.

Declaration
public double ToRU(double value, UnitTypeEnum srcType)
Parameters
Type Name Description
double value

The source value to convert.

UnitTypeEnum srcType

The unit of measurement used to express the source value. If equal to Pixel, the current document's CreationDpi is used as the source resolution (DPI).

Returns
Type Description
double

The double value expressed in ResolvedUnit units.

ToRU(RectangleD, UnitTypeEnum)

Converts a RectangleD structure expressed in specified UnitTypeEnum units to a RectangleD expressed in the current document's ResolvedUnit units, using CreationDpi as the source resolution if srcType is Pixel.

Declaration
public RectangleD ToRU(RectangleD value, UnitTypeEnum srcType)
Parameters
Type Name Description
RectangleD value

The source value to convert.

UnitTypeEnum srcType

The unit of measurement used to express the source value. If equal to Pixel, the current document's CreationDpi is used as the source resolution (DPI).

Returns
Type Description
RectangleD

The RectangleD expressed in ResolvedUnit units.