Add_ShapeCircle example
Example for Add_ShapeCircle method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim xc As Single
Dim yc As Single
Dim r As Single
Dim vItemProperties As Object
Dim Fill_iType As Byte
Dim Fill_lHatchIndex As Integer
Dim Fill_iInForeColor As Short
Dim Fill_iInBackColor As Short
Dim Fill_sPattern As String
Dim Fill_zOrder As Integer
Dim Fill_lFlags As Integer
Dim nVert As Integer
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim AvaxHandle As Integer
' Define the coordinates of the circle's center
xc = 8 : yc = 8
' Define the radious of the circle
r = 5
iClr = 5 'Color RED is selected
'Fill with solid magenta color
Fill_iInForeColor = 3
AvaxHandle = cAvax1.Add_ShapeCircle(xc, yc, r, vItemProperties, Fill_iType, Fill_lHatchIndex, Fill_iInForeColor, Fill_iInBackColor, Fill_sPattern, Fill_zOrder, Fill_lFlags, nVert, iClr, iWidth, iStyle, iLayer)
End Sub