PrintToTIF example
Example for PrintToTIF 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 sTIFFile 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
sTIFFile = My.Application.Info.DirectoryPath & "\..\temp.tif"
lWidth = 120
lHeight = 120
sScale = 1
Answer = cAvax1.PrintToTIF(sTIFFile, lWidth, lHeight, fSelected, xMin, yMin, xMax, yMax, sScale)
End Sub