Skip to main content

FromRectWithDpi(Rect, Vector) 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,
Vector dpi
)

Parameters

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

Return Value

PixelRect
The device-independent point.

See Also

Reference

PixelRect Structure
FromRectWithDpi Overload
Avalonia Namespace