コード例 #1
0
        private void untilerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog fd = new OpenFileDialog();

            fd.Filter = "All PNG Files|*.png";
            if (fd.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var Bitmap = Image.FromFile(fd.FileName) as Bitmap;
            var Rst    = TEX.Untile(Bitmap);

            Rst.Save(fd.FileName + "_untiled.png", ImageFormat.Png);

            MessageBox.Show("Texture Untiled");
        }