Skip to main content

Units.PixelsToTwips(Int32, Single) Method

Converts pixels to twips.

Namespace: DevExpress.Office.Utils

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

Declaration

public static int PixelsToTwips(
    int val,
    float dpi
)

Parameters

Name Type Description
val Int32

The value in pixels.

dpi Single

The resolution in dots per inch (DPI).

Returns

Type Description
Int32

The value in twips.

See Also