PixelRect.

FromRect(Rect, Vector) 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, Vector scale)

Parameters

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

Return Value

Type Description
PixelRect The device-independent point.