using System;
using System.Collections.Generic;
using System.Text;
using Matrox.MatroxImagingLibrary;
namespace MAppStart
{
class Program
{
static void Main(string[] args)
{
MIL_ID MilApplication = MIL.M_NULL;
MIL_ID MilSystem = MIL.M_NULL;
MIL_ID MilDisplay = MIL.M_NULL;
MIL_ID MilImage = MIL.M_NULL;
MIL.MappAllocDefault(MIL.M_DEFAULT, ref MilApplication, ref MilSystem, ref MilDisplay, MIL.M_NULL, ref MilImage);
if (MIL.MappGetError(MIL.M_DEFAULT, MIL.M_GLOBAL, MIL.M_NULL) == 0)
{
MIL.MgraColor(MIL.M_DEFAULT, 0xF0);
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, 0xC0);
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("\nSYSTEM ALLOCATION:\n");
Console.Write("------------------\n\n");
Console.Write("System allocation successful.\n\n");
Console.Write(" \"Welcome to MIL !!!\"\n\n");
}
else
{
Console.Write("System allocation error !\n\n");
}
Console.Write("Press <Enter> to end.\n");
Console.ReadKey();
MIL.MappFreeDefault(MilApplication, MilSystem, MilDisplay, MIL.M_NULL, MilImage);
}
}
}