Skip to main content
All docs
V25.1
  • Units.RoundTwipsToPixels(Int32, Single) Method

    Converts a measurement from twips (the value is rounded) to pixels.

    Namespace: DevExpress.Office.Utils

    Assembly: DevExpress.Office.v25.1.Core.dll

    NuGet Package: DevExpress.Office.Core

    Declaration

    public static int RoundTwipsToPixels(
        int val,
        float dpi
    )

    Parameters

    Name Type Description
    val Int32

    The value to be converted to pixels.

    dpi Single

    A dpi value used for conversion.

    Returns

    Type Description
    Int32

    The conversion result.

    See Also