/// <summary> /// Apply selected image to a blur filter /// </summary> private void Blur_Click(object sender, EventArgs e) { const string filterLabel = "Blur filter"; var valuePicker = new ValuePicker(5, 1, Resources.Msg_BlurIntense); if (valuePicker.ShowDialog() == DialogResult.OK) { this.Cursor = Cursors.WaitCursor; panelEdit.Enabled = false; panelBottom.Enabled = false; filterDel = ApplyActionToFrames; filterDel.BeginInvoke(filterLabel, ActionEnum.Blur, valuePicker.Value, null, CallBackFilter, null); } valuePicker.Dispose(); }
/// <summary> /// Apply selected image to a pixelated filter /// </summary> private void Pixelate_Click(object sender, EventArgs e) { const string filterLabel = "Pixelate filter"; //User first need to choose the intensity of the pixelate var valuePicker = new ValuePicker(100, 2, Resources.Msg_PixelSize); if (valuePicker.ShowDialog() == DialogResult.OK) { this.Cursor = Cursors.WaitCursor; panelEdit.Enabled = false; panelBottom.Enabled = false; filterDel = ApplyActionToFrames; filterDel.BeginInvoke(filterLabel, ActionEnum.Pixelate, valuePicker.Value, null, CallBackFilter, null); } valuePicker.Dispose(); }