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