private void btnGray_Click(object sender, EventArgs e) { if (OriginalForm != null) { Bitmap copy = new Bitmap(PicOriginal); Processing.ConvertToGray(copy); PicResult = copy; if (ResultForm == null || ResultForm.Visible == false) { ResultForm = new ResultForm(); ResultForm.Show(); } else { OriginalForm.ReloadImage(); } } }
private void btnVerMirroring_Click(object sender, EventArgs e) { if (OriginalForm != null) { Bitmap copy = new Bitmap(PicOriginal); Processing.VerticallMirroring(copy); PicResult = copy; if (ResultForm == null || ResultForm.Visible == false) { ResultForm = new ResultForm(); ResultForm.Show(); } else { ResultForm.ReloadImage(); } } }
private void btnQuantize_Click(object sender, EventArgs e) { if (OriginalForm != null) { Bitmap copy = new Bitmap(PicOriginal); Processing.Quantize(copy, (int)this.numberQuantize.Value); PicResult = copy; if (ResultForm == null || ResultForm.Visible == false) { ResultForm = new ResultForm(); ResultForm.Show(); } else { ResultForm.ReloadImage(); } } }