Skip to main content

GraphicsUnitConverter.Convert(RectangleF, 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.v23.1.dll

NuGet Package: DevExpress.Data


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


Name Type Description
val RectangleF

A RectangleF structure.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.


Type Description

A RectangleF structure.

See Also