Skip to main content

ToRect(Double) Method

Converts the PixelRect to a device-independent Rect using the specified scaling factor.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Rect ToRect(
double scale
)

Parameters​

  Double
The scaling factor.

Return Value​

Rect
The device-independent rect.

See Also​

Reference​

PixelRect Structure
ToRect Overload
Avalonia Namespace