Skip to main content

Units.PixelsToTwips(Size, Single, Single) Method

Converts pixels to twips.

Namespace: DevExpress.Office.Utils

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

Declaration

public static Size PixelsToTwips(
    Size size,
    float dpiX,
    float dpiY
)

Parameters

Name Type Description
size Size

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
Size

The value in twips.

See Also