// Apply the Invert Effect private void invertEffectButton_Click(object sender, EventArgs e) { isInvertEffect = true; Invert temp = new Invert(); bitmapImage = temp.InvertEffect(bitmapImage); image1.Source = bitmapImage; }