Skip to main content

GraphicsUnitConverter.Convert(PointF, GraphicsUnit, GraphicsUnit) Method

Adjusts the coordinates of a point calculated for the specified unit of measure according to a new unit of measure.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public static PointF Convert(
    PointF val,
    GraphicsUnit fromUnit,
    GraphicsUnit toUnit
)

Parameters

Name Type Description
val PointF

A PointF structure.

fromUnit GraphicsUnit

A GraphicsUnit enumeration value, specifying the initial unit of measure.

toUnit GraphicsUnit

A GraphicsUnit enumeration value, specifying the required unit of measure.

Returns

Type Description
PointF

A PointF structure.

See Also