Skip to main content
All docs
V24.2

DXGraphicsUnitConverter.Convert(Int32, Single, Single) Method

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

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.2.dll

Declaration

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

Parameters

Name Type Description
val Int32

The value to convert.

fromDpi Single

The initial DPI setting.

toDpi Single

The required DPI setting.

Returns

Type Description
Int32

The conversion result.

See Also