Skip to main content

GraphicsDpi.UnitToDpiI(GraphicsUnit) Method

Converts the specified unit of measure to a corresponding DPI value.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public static float UnitToDpiI(
    GraphicsUnit unit
)

Parameters

Name Type Description
unit GraphicsUnit

A GraphicsUnit enumeration value.

Returns

Type Description
Single

A Single value.

Remarks

When the unit parameter value is equal to Pixel or World, this method returns the GraphicsDpi.DeviceIndependentPixel value. To obtain a GraphicsDpi.Pixel value instead, use the GraphicsDpi.UnitToDpi method.

See Also