GraphicsDpi.UnitToDpiI(GraphicsUnit) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

public static float UnitToDpiI(
    GraphicsUnit unit
)
Public Shared Function UnitToDpiI(
    unit As GraphicsUnit
) As Single

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