Skip to main content
All docs
V24.1

DXGraphicsUnitConverter.Convert(Single, Single, Single) Method

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

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

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

Parameters

Name Type Description
val Single

The value to convert.

fromDpi Single

The initial DPI setting.

toDpi Single

The required DPI setting.

Returns

Type Description
Single

The conversion result.

See Also