예제 #1
0
파일: frmMain.cs 프로젝트: fangxu/Image2Wav
        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!");
        }
예제 #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!");
        }