PrintToSVG example
Example for PrintToSVG method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Command1.Text = "PrintToSVG"
cAvax1.StartAvax()
Call CAvax1.Add_Line(0, 5, 0, 10, 5, 0, Nothing, 1, 1, -1, -1)
Call CAvax1.Add_Line(5, 0, 0, 5, 10, 0, Nothing, 1, 1, -1, -1)
Call CAvax1.Add_Circle(5, 5, 0, 3, Nothing, 5, -1, -1, -1)
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 sSVGFile As String
Dim WidthCM As Single
Dim HeightCM As Single
Dim fSelected As Boolean
Dim xMin As Single
Dim yMin As Single
Dim xMax As Single
Dim yMax As Single
Dim Answer As Boolean
sSVGFile = My.Application.Info.DirectoryPath & "\..\temp.svg"
WidthCM = 5
HeightCM = 5
Answer = cAvax1.PrintToSVG(sSVGFile, WidthCM, HeightCM, fSelected, xMin, yMin, xMax, yMax)
End Sub