GraphicsUnitConverter.Convert(RectangleDF, 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.v20.2.dll

Declaration

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

Parameters

Name Type Description
val DevExpress.XtraPrinting.Native.RectangleDF

A DevExpress.XtraPrinting.Native.RectangleDF structure.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
DevExpress.XtraPrinting.Native.RectangleDF

A DevExpress.XtraPrinting.Native.RectangleDF structure.

See Also