GraphicsUnitConverter.Convert(Int32, Single, Single) Method

Adjusts the integer value calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v21.2.dll


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


Name Type Description
val Int32

An integer value.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.


Type Description

An integer value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Convert(Int32, Single, Single) method.


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