PrintToPNG example
Example for PrintToPNG method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Call 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
Call CAvax1.EndAvax()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sPNGFile As String
Dim lWidth As Integer
Dim lHeight As Integer
Dim fSelected As Boolean
Dim xMin As Single
Dim yMin As Single
Dim xMax As Single
Dim yMax As Single
Dim sScale As Single
Dim Answer As Boolean
sPNGFile = My.Application.Info.DirectoryPath & "\..\temp.png"
lWidth = 120
lHeight = 120
sScale = 1
Answer = CAvax1.PrintToPNG(sPNGFile, lWidth, lHeight, fSelected, xMin, yMin, xMax, yMax, sScale)
End Sub