// 縮小(抽取) private void button3_Click(object sender, EventArgs e) { pcxAfter = new ImgPcx(pcxOrigin); pcxAfter.ZoomOut_Decimation(Double.Parse(textBox1.Text)); pictureBox1.Image = pcxAfter.pcxImg; // 顯示SNR值 (到小數後2位) textBox2.Text = pcxOrigin.GetSNR(pcxAfter, pcxOrigin).ToString("f2"); }
// 縮小(抽取) private void button3_Click(object sender, EventArgs e) { pcxAfter = new ImgPcx(pcxOrigin); pcxAfter.ZoomOut_Decimation(Double.Parse(textBox1.Text)); pictureBox1.Image = pcxAfter.pcxImg; }