private void sagAynala_Click(object sender, EventArgs e) { if (pictureBox1.Image == null) { MessageBox.Show("Resim Yüklenmedi!!"); } else { Bitmap image = new Bitmap(pictureBox1.Image); Metodlar ayna = new Metodlar(); pictureBox1.Image = ayna.SagAyna(image); } }
private void Green_Click(object sender, EventArgs e) { if (pictureBox1.Image == null) { MessageBox.Show("Resim Yüklenmedi!!"); } else { Bitmap asil = new Bitmap(openFileDialog1.FileName); Metodlar greenmode = new Metodlar(); geri = pictureBox1.Image; pictureBox1.Image = greenmode.GreenMode(asil); } }
private void Right_Click(object sender, EventArgs e) { if (pictureBox1.Image == null) { MessageBox.Show("Resim Yüklenmedi!!"); } else { Bitmap image = new Bitmap(pictureBox1.Image); Metodlar rdondur = new Metodlar(); geri = pictureBox1.Image; pictureBox1.Image = rdondur.RDondur(image); } }
private void Negative_Click(object sender, EventArgs e) { if (pictureBox1.Image == null) { MessageBox.Show("Resim Yüklenmedi!!"); } else { Bitmap asil = new Bitmap(openFileDialog1.FileName); Metodlar negatif = new Metodlar(); geri = pictureBox1.Image; pictureBox1.Image = negatif.NegativeYap(asil); } }
public void TextBoxGiris() { String boyutx; String boyuty; int boyutx1, boyuty1; boyutx = genislik.Text; boyuty = yukseklik.Text; boyutx1 = Convert.ToInt32(boyutx.ToString()); boyuty1 = Convert.ToInt32(boyuty.ToString()); Bitmap image = new Bitmap(pictureBox1.Image); Metodlar olcek = new Metodlar(); pictureBox1.Image = olcek.Olceklendir(image, boyutx1, boyuty1); }
private void Olceklendir_Click(object sender, EventArgs e) { text.Visible = false; genislik.Visible = false; yukseklik.Visible = false; String boyutx; String boyuty; int boyutx1, boyuty1; boyutx = genislik.Text; boyuty = yukseklik.Text; boyutx1 = Convert.ToInt32(boyutx.ToString()); boyuty1 = Convert.ToInt32(boyuty.ToString()); Bitmap image = new Bitmap(pictureBox1.Image); Metodlar olcek = new Metodlar(); geri = pictureBox1.Image; RGBiHistogram.Image = olcek.Olceklendir(image, boyutx1, boyuty1); }
private void button1_Click(object sender, EventArgs e) { MessageBox.Show(Metodlar.KucukUnluUyumuKONTROL(textBox1.Text)); textBox1.Text = ""; }