Exemple #1
0
        static void Main(string[] args)
        {
            // Check if FreeImage.dll is available (can be in %path%).
            if (!FreeImage.IsAvailable())
            {
                Console.WriteLine("FreeImage.dll seems to be missing. Aborting.");
                return;
            }

            Sample sample = new Sample();

            // This example shows the basic loading and saving operations offered by FreeImage.
            sample.Example01();

            // This example shows a more comfortable way offered by the .NET Wrapper.
            sample.Example02();

            // This example shows the FreeImage-Errormessage-Callback
            sample.Example03();
        }
        static void Main(string[] args)
        {
            NativeLibraryLoader.CopyFreeImageNativeDll();

            // Check if FreeImage.dll is available (can be in %path%).
            FreeImage.ValidateAvailability();

            Sample sample = new Sample();

            // This example shows the basic loading and saving operations offered by FreeImage.
            sample.Example01();

            // This example shows a more comfortable way offered by the .NET Wrapper.
            sample.Example02();

            // This example shows the FreeImage-Errormessage-Callback
            sample.Example03();

            Console.ReadKey();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            // Check if FreeImage.dll is available (can be in %path%).
            if (!FreeImage.IsAvailable())
            {
                Console.WriteLine("FreeImage.dll seems to be missing. Aborting.");
                return;
            }

            Sample sample = new Sample();
            // This example shows the basic loading and saving operations offered by FreeImage.
            sample.Example01();

            // This example shows a more comfortable way offered by the .NET Wrapper.
            sample.Example02();

            // This example shows the FreeImage-Errormessage-Callback
            sample.Example03();
        }