public void SonucButon_Click(object sender, EventArgs e) { Bitmap imagesonuc = new Bitmap("C:\\Users\\Alaaddin\\Desktop\\pep.png"); pictureBox1.Image = Image.FromFile("C:\\Users\\Alaaddin\\Desktop\\pep.png"); Bitmap grisonuc = x2ymod5(imagesonuc); pictureBox2.Image = grisonuc; Sonuc snc = new Sonuc(); snc.Resimdegistir(pictureBox2.Image); snc.Show(); }
public Form1() { snc = new Sonuc(); InitializeComponent(); snc.frm1 = this; }