GraphicsDpi.UnitToDpi(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 UnitToDpi(
    GraphicsUnit unit
)
Public Shared Function UnitToDpi(
    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.Pixel value. To obtain a GraphicsDpi.DeviceIndependentPixel value instead, use the GraphicsDpi.UnitToDpiI method.

See Also