PixelRect.

FromRectWithDpi(Rect, double) Method

Summary

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

Syntax

public static PixelRect FromRectWithDpi(Rect rect, double dpi)

Parameters

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

Return Value

Type Description
PixelRect The device-independent point.