Skip to main content

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.v25.2.dll

NuGet Package: DevExpress.Data

Declaration

public static int Convert(
    int val,
    float fromDpi,
    float toDpi
)

Parameters

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.

Returns

Type Description
Int32

An integer value.

See Also