コード例 #1
0
        private void exportSurfaceLevelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter = "Supported Formats|*.dds|" +
                         "Microsoft DDS |*.dds|" +
                         "All files(*.*)|*.*";

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                textureData.Export(sfd.FileName, true, false, CurArrayDisplayLevel, CurMipDisplayLevel);
            }
        }
コード例 #2
0
ファイル: TextureViewer.cs プロジェクト: week9/Switch-Toolbox
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.FileName   = SelectedTex.Text;
            sfd.DefaultExt = "bftex";
            sfd.Filter     = "Supported Formats|*.bftex;*.dds; *.png;*.tga;*.jpg;*.tiff|" +
                             "Binary Texture |*.bftex|" +
                             "Microsoft DDS |*.dds|" +
                             "Portable Network Graphics |*.png|" +
                             "Joint Photographic Experts Group |*.jpg|" +
                             "Bitmap Image |*.bmp|" +
                             "Tagged Image File Format |*.tiff|" +
                             "All files(*.*)|*.*";

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                SelectedTex.Export(sfd.FileName);
            }
        }