private void button8_Click(object sender, EventArgs e) { try { InsertarCambio("Dilatation"); anterior = MethodImagenFilter.CopyBitmap(actual); actual = MethodImagenFilter.Dilatation(actual); pictureBox1.Image = actual; } catch (Exception ex) { MessageBox.Show($"Erro: {ex.Message}"); } }