'
'
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Matrox.MatroxImagingLibrary
Namespace MDigGrab
Friend Class Program
Shared Sub Main(ByVal args() As String)
Dim MilApplication As MIL_ID = MIL.M_NULL
Dim MilSystem As MIL_ID = MIL.M_NULL
Dim MilDisplay As MIL_ID = MIL.M_NULL
Dim MilDigitizer As MIL_ID = MIL.M_NULL
Dim MilImage As MIL_ID = MIL.M_NULL
MIL.MappAllocDefault(MIL.M_DEFAULT, MilApplication, MilSystem, MilDisplay, MilDigitizer, MilImage)
MIL.MdigGrabContinuous(MilDigitizer, MilImage)
Console.Write(Constants.vbLf + "DIGITIZER ACQUISITION:" + Constants.vbLf)
Console.Write("----------------------" + Constants.vbLf + Constants.vbLf)
Console.Write("Continuous image grab in progress." + Constants.vbLf)
Console.Write("Press <Enter> to stop." + Constants.vbLf + Constants.vbLf)
Console.ReadKey()
MIL.MdigHalt(MilDigitizer)
Console.Write("Continuous grab stopped." + Constants.vbLf + Constants.vbLf)
Console.Write("Press <Enter> to do a single image grab." + Constants.vbLf + Constants.vbLf)
Console.ReadKey()
MIL.MdigGrab(MilDigitizer, MilImage)
Console.Write("Displaying the grabbed image." + Constants.vbLf)
Console.Write("Press <Enter> to end." + Constants.vbLf + Constants.vbLf)
Console.ReadKey()
MIL.MappFreeDefault(MilApplication, MilSystem, MilDisplay, MilDigitizer, MilImage)
End Sub
End Class
End Namespace