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

    Converts point coordinates from documents (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 RoundDocumentsToPixels(
        int val,
        float dpi
    )

    Parameters

    Name Type Description
    val Int32

    The value in documents to be converted to pixels.

    dpi Single

    A dpi value used for conversion.

    Returns

    Type Description
    Int32

    The conversion result.

    See Also