Method FillRoundRectangleLTRB
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
dcGraphicsThe Graphics object used to draw the filled rounded rectangle.
brushBrushThe Brush used to fill the rounded rectangle.
leftfloatThe x-coordinate of the left edge of the rectangle.
topfloatThe y-coordinate of the top edge of the rectangle.
rightfloatThe x-coordinate of the right edge of the rectangle.
bottomfloatThe y-coordinate of the bottom edge of the rectangle.
cornerWidthfloatThe width of the rectangle's corner rounding. Must be non-negative.
cornerHeightfloatThe 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.