Skip to main content
All docs
V24.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.v24.2.dll

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