Table of Contents

Method FillRoundRectangleLTRB

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FillRoundRectangleLTRB(Graphics, Brush, float, float, float, float, float, float)

Fills a rounded rectangle defined by its left, top, right, and bottom coordinates.

public static void FillRoundRectangleLTRB(Graphics dc, Brush brush, float left, float top, float right, float bottom, float cornerWidth, float cornerHeight)

Parameters

dc Graphics

The Graphics object used to draw the filled rounded rectangle.

brush Brush

The Brush used to fill the rounded rectangle.

left float

The x-coordinate of the left edge of the rectangle.

top float

The y-coordinate of the top edge of the rectangle.

right float

The x-coordinate of the right edge of the rectangle.

bottom float

The y-coordinate of the bottom edge of the rectangle.

cornerWidth float

The width of the rectangle's corner rounding. Must be non-negative.

cornerHeight float

The height of the rectangle's corner rounding. Must be non-negative.

Remarks

The method calculates the corner radius as half the smaller of cornerWidth and cornerHeight. The resulting rounded rectangle is filled using the specified brush.