Skip to main content
All docs
V25.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.v25.2.dll

    NuGet Package: DevExpress.Drawing

    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