Initializes a new instance of the
RenderRoundRectangle class, assigning the location and the size of the rectangle, and the
LineDef used to draw it. The dimensions of the ellipse used to draw the rounded corners are set to
5% of the corresponding rectangle's dimensions.
シンタックス
'宣言
Public Function New( _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As Unit, _
ByVal As LineDef _
)
'使用法
Dim x As Unit
Dim y As Unit
Dim width As Unit
Dim height As Unit
Dim shapeLine As LineDef
Dim instance As New RenderRoundRectangle(x, y, width, height, shapeLine)
public RenderRoundRectangle(
Unit ,
Unit ,
Unit ,
Unit ,
LineDef
)
パラメータ
- 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.
- shapeLine
- The LineDef used to draw the rectangle.
参照