Skip to main content

GraphicsDpi.UnitToDpi(GraphicsUnit) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v26.1.dll

NuGet Package: DevExpress.Data

Declaration

public static float UnitToDpi(
    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.Pixel value. To obtain a GraphicsDpi.DeviceIndependentPixel value instead, use the GraphicsDpi.UnitToDpiI method.

See Also