private void btnEdit_Click(object sender, EventArgs e) { imageFirst = new Bitmap(pictureBox1.Image); operation = new Gray(); operation = new Sobel(); Bitmap imageLast = operation.Make(imageFirst); pictureBox2.Image = imageLast; }
public void Process( IProcessingMethod method ) { method.Process( this ); }