RenderRoundRectangle Constructor(Unit,Unit,Unit,Unit,Unit,Unit,LineDef,Brush)
In This Topic
Initializes a new instance of the
RenderRoundRectangle class, assigning the location, size and roundness of the rectangle, the
LineDef used to draw it, and the fill brush.
Syntax
'Declaration
Public Function New( _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As LineDef, _
ByVal As Brush _
)
public RenderRoundRectangle(
Unit ,
Unit ,
Unit ,
Unit ,
Unit ,
Unit ,
LineDef ,
Brush
)
Parameters
- x
- The X coordinate of the rectangle, relative to the current object's location.
- y
- The Y coordinate of the rectangle, relative to the current object's location.
- width
- The width of the rectangle.
- height
- The height of the rectangle.
- ellipseWidth
- The width of the ellipse used to draw the rounded corners (may be specified as "5%width" for example).
- ellipseHeight
- The height of the ellipse used to draw the rounded corners (may be specified as "5%height" for example).
- shapeLine
- The LineDef used to draw the rectangle.
- shapeFillBrush
- The brush used to fill the rectangle.
See Also