![]() |
|
GraphicsExtensionsFillRoundedRectangle Method (Graphics, Brush, Rectangle, Int32) | KGy SOFT Drawing Libraries Help |
Fills a rounded rectangle specified by a bounding Rectangle and a common corner radius value for each corners.
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax
public static void FillRoundedRectangle( this Graphics graphics, Brush brush, Rectangle bounds, int cornerRadius )
<ExtensionAttribute> Public Shared Sub FillRoundedRectangle ( graphics As Graphics, brush As Brush, bounds As Rectangle, cornerRadius As Integer )
public: [ExtensionAttribute] static void FillRoundedRectangle( Graphics^ graphics, Brush^ brush, Rectangle bounds, int cornerRadius )
[<ExtensionAttribute>] static member FillRoundedRectangle : graphics : Graphics * brush : Brush * bounds : Rectangle * cornerRadius : int -> unit
Parameters
- graphics
- Type: System.DrawingGraphics
The Graphics instance to draw on. - brush
- Type: System.DrawingBrush
The Brush instance to be used for the drawing. - bounds
- Type: System.DrawingRectangle
A Rectangle that bounds the rounded rectangle. - cornerRadius
- Type: SystemInt32
Size of the corner radius for each corners.
Usage Note
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).See Also