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)
- C#
- VB
- F#
public Rect ToRect(
double scale
)
Public Function ToRect (
scale As Double
) As Rect
member ToRect :
scale : float -> Rect
Parameters
- Double
- The scaling factor.
Return Value
Rect
The device-independent rect.