Table of Contents

Constructor RoundedRectangle

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

RoundedRectangle(Rectangle, double)

Initializes a new rounded rectangle from a bounding rectangle and a corner radius.

public RoundedRectangle(Rectangle bounds, double cornerRadius)

Parameters

bounds Rectangle

The bounding rectangle.

cornerRadius double

The corner radius. Clamped to min(Width, Height) / 2.

Exceptions

ArgumentNullException

Thrown if bounds is null.

ArgumentOutOfRangeException

Thrown if cornerRadius is negative.