// 放大(複製) private void button1_Click(object sender, EventArgs e) { pcxAfter = new ImgPcx(pcxOrigin); pcxAfter.ZoomIn_Duplication(Double.Parse(textBox1.Text)); pictureBox1.Image = pcxAfter.pcxImg; // 顯示SNR值 (到小數後2位) textBox2.Text = pcxOrigin.GetSNR(pcxOrigin, pcxAfter).ToString("f2"); }
// 放大(複製) private void button1_Click(object sender, EventArgs e) { pcxAfter = new ImgPcx(pcxOrigin); pcxAfter.ZoomIn_Duplication(Double.Parse(textBox1.Text)); pictureBox1.Image = pcxAfter.pcxImg; }