private void button1_Click(object sender, EventArgs e) { at.transform(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox3.Text), Convert.ToDouble(textBox5.Text), Convert.ToDouble(textBox2.Text), Convert.ToDouble(textBox4.Text), Convert.ToDouble(textBox6.Text), radioButton1.Checked); Picture newForm = new Picture(at.getTransformImage()); newForm.Show(); }
private void button10_Click(object sender, EventArgs e) { Info info = new Info(); info.a0 = 0; info.a1 = 1.05d; info.a2 = 0.05d; info.b0 = 0; info.b1 = 0.05d; info.b2 = 1.05d; AffineTransformation at = new AffineTransformation(orgImg.getRGBBitmap()); at.transform(info.a0, info.a1, info.a2, info.b0, info.b1, info.b2, true); OriganalImage origanalImage2 = new OriganalImage(at.getTransformImage(), progressBar1); AccuracyAlgorithms newForm = new AccuracyAlgorithms(orgImg, origanalImage2, info); newForm.Show(); }