Esempio n. 1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            Core_Img2Wav core = new Core_Img2Wav();
            core.InputBitmap = (System.Drawing.Bitmap) pbxInputImage.Image;
            core.Start();

            sfdOutputFile.Filter = "Wave File (*.wav)|";
            DialogResult dr = sfdOutputFile.ShowDialog();
            if (dr == DialogResult.OK)
            {
                core.OutputWav.WriteFile(sfdOutputFile.FileName);

            }
            MessageBox.Show("Done!");
        }
Esempio n. 2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            Core_Img2Wav core = new Core_Img2Wav();

            core.InputBitmap = (System.Drawing.Bitmap)pbxInputImage.Image;
            core.Start();

            sfdOutputFile.Filter = "Wave File (*.wav)|";
            DialogResult dr = sfdOutputFile.ShowDialog();

            if (dr == DialogResult.OK)
            {
                core.OutputWav.WriteFile(sfdOutputFile.FileName);
            }
            MessageBox.Show("Done!");
        }