private void button35_Click(object sender, EventArgs e) { try { InsertarCambio("TirarPretoSozinhoHorizontal"); anterior = MethodImagenFilter.CopyBitmap(actual); actual = actual.Clone(new Rectangle(0, 0, actual.Width, actual.Height), System.Drawing.Imaging.PixelFormat.Format24bppRgb); actual = MethodImagenFilter.TirarPixelPretoSozinhoHorizontal(actual); pictureBox1.Image = actual; } catch (Exception ex) { MessageBox.Show($"Erro: {ex.Message}"); } }