/// <summary> /// Converts the current composite image to grayscale. /// </summary> private void mnuGrayscale_Click(object sender, EventArgs e) { addBackgroundOperation( GraphicOperations.ApplyGrayscaleFilter((Bitmap)pbxDisplay.Image), "Applying grayscale filter", (ps, pe) => { pbxDisplay.Image = (Bitmap)pe.Result; } ); }