private void halftoningToolStripMenuItem1_Click(object sender, EventArgs e) { checkPictureBox1(); if (!valid) { return; } Bitmap bit = new Bitmap(pictureBox1.Image); pictureBox2.Refresh(); pictureBox2.Image = GraphicClass.halftoning(GraphicClass.convertRGB2Gray(bit)); }