DeepZoom WebSite

Jul 18, 2011 at 11:21 PM

Hi,

Just a simple idea using the DeepZoomTools.DLL and a default template with SeaDragon (JavaScript):

 public static void CreateImage(string exePath, string sourcePath, string outputPath)
        {
            ProcessStartInfo procInfo = new ProcessStartInfo(exePath);
            procInfo.Arguments = "-w " + sourcePath + " -o " + outputPath;
            Process MoreTerraProcess = Process.Start(procInfo);
            MoreTerraProcess.WaitForExit();
        }

        static void Main(string[] args)
        {
            //this is an example. (you should use appropriate args) 
	   CreateImage(@"""E:\Terraria\MoreTerra1.5\MoreTerra.exe""", @"""E:\Terraria\Worlds\SBworld01.wld""", @"""E:\Terraria\Output\MapSBworld01.png""");

            string sourcePath = @"E:\Terraria\Output\MapSBworld01.png";
            string outputPath = @"D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\TerraWorldSite\GeneratedImages\dzc_output";

            var imgCreator = new ImageCreator
            {
                TileSize = 256,
                TileFormat = Microsoft.DeepZoomTools.ImageFormat.Png,
                ImageQuality = 0.90,
                TileOverlap = 0
            };

            imgCreator.Create(sourcePath, outputPath);
        }

See the Deep Zoom Composer for more information.
Regards,