PixelRectFromRect(Rect, Vector) Method

Converts a Rect to device pixels using the specified scaling factor.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static PixelRect FromRect(
	Rect rect,
	Vector scale
)

Parameters

rect  Rect
The rect.
scale  Vector
The scaling factor.

Return Value

PixelRect
The device-independent point.

See Also