#region Copyright & License Information /* * Copyright 2007-2010 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, * see LICENSE. */ #endregion using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Windows.Forms; using System.Xml; using OpenRA.FileFormats; namespace OpenRA.TilesetBuilder { public partial class Form1 : Form { string srcfile; public Form1( string src ) { srcfile = src; InitializeComponent(); surface1.Image = (Bitmap)Image.FromFile(src); surface1.TerrainTypes = new int[surface1.Image.Width / 24, surface1.Image.Height / 24]; /* all passable by default */ surface1.Templates = new List