PixelSizeToSizeWithDpi(Double) Method

Converts the PixelSize to a device-independent Size using the specified dots per inch (DPI).

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Size ToSizeWithDpi(
	double dpi
)

Parameters

dpi  Double
The dots per inch.

Return Value

Size
The device-independent size.

See Also