/// <summary> /// User interface for changing the red/green/blue channels individually for an image /// </summary> /// <param name="mPF">The Image_Editor_Main that spawned the dialog</param> /// <param name="pF">The ColorRGBDialog that spawned this control</param> public ColorRGBControl(Image_Editor_Main mPF, ColorRGBDialog pF) { mainParentForm = mPF; parentForm = pF; InitializeComponent(); originalBitmapCount = mainParentForm.CurrentBitmap; }
private void customMatrixTransformationToolStripMenuItem_Click(object sender, EventArgs e) { try { ColorRGBDialog colorRGB = new ColorRGBDialog(this, "CustomMatrix"); colorRGB.Show(); } catch (Exception ex) { MessageBox.Show("No Picture, please open a a picture to edit it" + ex.Message); } }
private void customGreyscaleToolStripMenuItem_Click(object sender, EventArgs e) { try { ColorRGBDialog colorRGB = new ColorRGBDialog(this, "CustomGrey"); colorRGB.Show(); } catch (Exception) { MessageBox.Show("No Picture, please open a a picture to edit it"); } }