Skip to main content

FromRectWithDpi(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)

public static PixelRect FromRectWithDpi(
Rect rect,
double dpi
)

Parameters

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

Return Value

PixelRect
The device-independent point.

See Also

Reference

PixelRect Structure
FromRectWithDpi Overload
Avalonia Namespace