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); } }
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); } }