PixelRect.

FromRectWithDpi(Rect, Vector) 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, Vector dpi)

Parameters

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

Return Value

Type Description
PixelRect The device-independent point.