Skip to main content

Units.PixelsToHundredthsOfInch(Size, Single) Method

Converts a size in pixels to a size in hundredths of an inch, using the specified DPI value.

Namespace: DevExpress.Office.Utils

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

Declaration

public static Size PixelsToHundredthsOfInch(
    Size val,
    float dpi
)

Parameters

Name Type Description
val Size

A size in pixels.

dpi Single

The DPI value to use for the conversion.

Returns

Type Description
Size

The size converted to hundredths of an inch.

See Also