'
'
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Matrox.MatroxImagingLibrary
Namespace MAppStart
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 MilImage As MIL_ID = MIL.M_NULL
MIL.MappAllocDefault(MIL.M_DEFAULT, MilApplication, MilSystem, MilDisplay, CType(MIL.M_NULL, IntPtr), MilImage)
If MIL.MappGetError(MIL.M_DEFAULT, MIL.M_GLOBAL, CType(MIL.M_NULL, IntPtr)) = 0 Then
MIL.MgraColor(MIL.M_DEFAULT, &HF0)
MIL.MgraFont(MIL.M_DEFAULT, MIL.M_FONT_DEFAULT_LARGE)
MIL.MgraText(MIL.M_DEFAULT, MilImage, 160L, 230L, " Welcome to MIL !!! ")
MIL.MgraColor(MIL.M_DEFAULT, &HC0)
MIL.MgraRect(MIL.M_DEFAULT, MilImage, 100, 150, 530, 340)
MIL.MgraRect(MIL.M_DEFAULT, MilImage, 120, 170, 510, 320)
MIL.MgraRect(MIL.M_DEFAULT, MilImage, 140, 190, 490, 300)
Console.Write(Constants.vbLf + "SYSTEM ALLOCATION:" + Constants.vbLf)
Console.Write("------------------" + Constants.vbLf + Constants.vbLf)
Console.Write("System allocation successful." + Constants.vbLf + Constants.vbLf)
Console.Write(" ""Welcome to MIL !!!""" + Constants.vbLf + Constants.vbLf)
Else
Console.Write("System allocation error !" + Constants.vbLf + Constants.vbLf)
End If
Console.Write("Press <Enter> to end." + Constants.vbLf)
Console.ReadKey()
MIL.MappFreeDefault(MilApplication, MilSystem, MilDisplay, MIL.M_NULL, MilImage)
End Sub
End Class
End Namespace