Skip to main content
A newer version of this page is available. .

GraphicsUnitConverter.Convert(Rectangle, Single, Single) Method

Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v18.2.dll

Declaration

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

Parameters

Name Type Description
val Rectangle

A Rectangle structure.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
Rectangle

A Rectangle structure.

See Also