Skip to main content

Units.PixelsToTwips(Rectangle, Single, Single) Method

Converts pixels to twips.

Namespace: DevExpress.Office.Utils

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

Declaration

public static Rectangle PixelsToTwips(
    Rectangle rect,
    float dpiX,
    float dpiY
)

Parameters

Name Type Description
rect Rectangle

The value in pixels.

dpiX Single

The horizontal resolution in dots per inch (DPI).

dpiY Single

The vertical resolution in dots per inch (DPI).

Returns

Type Description
Rectangle

The value in twips.

See Also