DrawRoundedRectangle Method (IDrawingContext)
In This Topic
Draws a rounded rectangle with the specified Brush and Pen.
Syntax
'Declaration
Sub DrawRoundedRectangle( _
ByVal As Brush, _
ByVal As Pen, _
ByVal As Rectangle, _
ByVal As Double, _
ByVal As Double _
)
'Usage
Dim instance As IDrawingContext
Dim brush As Brush
Dim pen As Pen
Dim rect As Rectangle
Dim radiusX As Double
Dim radiusY As Double
instance.DrawRoundedRectangle(brush, pen, rect, radiusX, radiusY)
void DrawRoundedRectangle(
Brush ,
Pen ,
Rectangle ,
double ,
double
)
Parameters
- brush
- The brush used to fill the rectangle.
- pen
- The pen used to stroke the rectangle.
- rect
- The rectangle to draw.
- radiusX
- The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to Rect.Width/2.
- radiusY
- The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to Rect.Height/2.
See Also