PixelRect.

ToRectWithDpi(double) Method

Summary

Converts the PixelRect to a device-independent Rect using the specified dots per inch (DPI).
Namespace
Avalonia
Containing Type
PixelRect

Syntax

public Rect ToRectWithDpi(double dpi)

Parameters

Name Type Description
dpi double The dots per inch of the device.

Return Value

Type Description
Rect The device-independent rect.