GraphicsExtensionsFillRoundedRectangle(Graphics, Brush, Rectangle, Int32, Int32, Int32, Int32) Method
Fills a rounded rectangle specified by a bounding
Rectangle and four custom corner radius values.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static void FillRoundedRectangle(
this Graphics graphics,
Brush brush,
Rectangle bounds,
int radiusTopLeft,
int radiusTopRight,
int radiusBottomRight,
int radiusBottomLeft
)
<ExtensionAttribute>
Public Shared Sub FillRoundedRectangle (
graphics As Graphics,
brush As Brush,
bounds As Rectangle,
radiusTopLeft As Integer,
radiusTopRight As Integer,
radiusBottomRight As Integer,
radiusBottomLeft As Integer
)
public:
[ExtensionAttribute]
static void FillRoundedRectangle(
Graphics^ graphics,
Brush^ brush,
Rectangle bounds,
int radiusTopLeft,
int radiusTopRight,
int radiusBottomRight,
int radiusBottomLeft
)
[<ExtensionAttribute>]
static member FillRoundedRectangle :
graphics : Graphics *
brush : Brush *
bounds : Rectangle *
radiusTopLeft : int *
radiusTopRight : int *
radiusBottomRight : int *
radiusBottomLeft : int -> unit
- graphics Graphics
- The Graphics instance to draw on.
- brush Brush
- The Brush instance to be used for the drawing.
- bounds Rectangle
- A Rectangle that bounds the rounded rectangle.
- radiusTopLeft Int32
- Size of the top-left radius.
- radiusTopRight Int32
- Size of the top-right radius.
- radiusBottomRight Int32
- Size of the bottom-right radius.
- radiusBottomLeft Int32
- Size of the bottom-left radius.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Graphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).