PixelRect.

FromRect(Rect, double) Method

Summary

Converts a Rect to device pixels using the specified scaling factor.
Namespace
Avalonia
Containing Type
PixelRect

Syntax

public static PixelRect FromRect(Rect rect, double scale)

Parameters

Name Type Description
rect Rect The rect.
scale double The scaling factor.

Return Value

Type Description
PixelRect The device-independent rect.