Skip to main content

GraphicsUnitConverter.Convert(SizeF, Single, Single) Method

Adjusts the size calculated for the specified DPI according to a new DPI.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

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

Parameters

Name Type Description
val SizeF

A SizeF structure.

fromDpi Single

A Single value, specifying the initial DPI setting.

toDpi Single

A Single value, specifying the required DPI setting.

Returns

Type Description
SizeF

A SizeF structure.

See Also