Skip to main content
All docs
V23.2

DXGraphicsUnitConverter.Convert(SizeF, Single, Single) Method

Adjusts the document margins calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v23.2.dll

NuGet Package: DevExpress.Drawing

Declaration

public static SizeF Convert(
    SizeF size,
    float fromDpi,
    float toDpi
)

Parameters

Name Type Description
size SizeF

A size to convert.

fromDpi Single

The initial DPI setting.

toDpi Single

The required DPI setting.

Returns

Type Description
SizeF

The conversion result.

See Also