A newer version of this page is available. Switch to the current version.

GraphicsUnitConverter.Convert(Margins, Single, Single) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v18.2.dll

Declaration

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

Parameters

Name Type Description
val Margins

A Margins object.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
Margins

A Margins object.

See Also