GraphicsUnitConverter.Convert(Single, Single, Single) Method

Adjusts the floating-point value calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

public static float Convert(
    float val,
    float fromDpi,
    float toDpi
)
Public Shared Function Convert(
    val As Single,
    fromDpi As Single,
    toDpi As Single
) As Single

Parameters

Name Type Description
val Single

A Single value.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
Single

A Single value.

See Also