FromRect(Rect, Double) Method
Converts a Rect to device pixels using the specified scaling factor.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static PixelRect FromRect(
Rect rect,
double scale
)
Public Shared Function FromRect (
rect As Rect,
scale As Double
) As PixelRect
static member FromRect :
rect : Rect *
scale : float -> PixelRect
Parameters
Return Value
PixelRect
The device-independent rect.