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

GraphicsUnitConverter.Convert(Int32, Single, Single) Method

Adjusts the integer value calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v18.2.dll


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


Name Type Description
val Int32

An integer value.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.


Type Description

An integer value.

See Also