PixelRectFromRectWithDpi(Rect, Double) Method

Converts a Rect to device pixels using the specified dots per inch (DPI).

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static PixelRect FromRectWithDpi(
	Rect rect,
	double dpi
)

Parameters

rect  Rect
The rect.
dpi  Double
The dots per inch of the device.

Return Value

PixelRect
The device-independent point.

See Also