Skip to main content

Units.PixelsToDocuments(Size, Single, Single) Method

Converts a size in pixels to a size in document units, using the specified horizontal and vertical DPI values.

Namespace: DevExpress.Office.Utils

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

Declaration

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

Parameters

Name Type Description
size Size

A size in pixels.

dpiX Single

The horizontal DPI value.

dpiY Single

The vertical DPI value.

Returns

Type Description
Size

The size converted to document units.

See Also