Skip to main content

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.v24.2.dll

NuGet Package: DevExpress.Data

Declaration

public static float Convert(
    float val,
    float fromDpi,
    float toDpi
)

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Convert(Single, Single, Single) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also