Toggle side menu
Toggle side menu
Home
Documentation
API
PixelRect
.
ToRectWithDpi
(Vector)
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(Vector dpi)
Parameters
Name
Type
Description
dpi
Vector
The dots per inch of the device.
Return Value
Type
Description
Rect
The device-independent rect.