GraphicsUnitConverter.Convert(MarginsF, Single, Single) Method

Adjusts the document margins calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

public static MarginsF Convert(
    MarginsF val,
    float fromDpi,
    float toDpi
)
Public Shared Function Convert(
    val As MarginsF,
    fromDpi As Single,
    toDpi As Single
) As MarginsF

Parameters

Name Type Description
val DevExpress.XtraPrinting.Native.MarginsF

A DevExpress.XtraPrinting.Native.MarginsF object.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
DevExpress.XtraPrinting.Native.MarginsF

A DevExpress.XtraPrinting.Native.MarginsF object.

See Also