Skip to main content

DrawRectangle(ImmutablePen, Rect, Single) Method

Draws the outline of a rectangle.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void DrawRectangle(
ImmutablePen pen,
Rect rect,
float cornerRadius = 0f
)

Parameters

  ImmutablePen
The pen.
  Rect
The rectangle bounds.
  Single  (Optional)
The corner radius.

See Also

Reference

ImmediateDrawingContext Class
DrawRectangle Overload
Avalonia.Media Namespace