void btn_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { IRgbProcessor p = (sender as Button).Tag as IRgbProcessor; foreach (IRgbProcessorArgEditor editor in _importedArgEditors) { if (editor.IsSupport(p.GetType())) { if (p.Arguments == null) { p.CreateDefaultArguments(); } editor.OnPreviewing += new OnArgEditorPreviewing(RerenderBitmap); editor.OnApplyClicked += new OnArgEditorApplyClick(RerenderBitmap); RgbProcessorArg oldArg = p.Arguments.Clone(); (editor as Form).Text = p.Name + "参数设置..."; editor.Init(this as IRgbArgEditorEnvironmentSupport, p); editor.Show(p.Arguments); //if (editor.ShowDialog(p.Arguments) == System.Windows.Forms.DialogResult.OK) //{ // Invalidate(); //} //else //{ // p.Arguments = oldArg; // Invalidate(); //} } } } }
public ExponentEnhanceProcessor(RgbProcessorArg arg) : base(arg) { }
public RgbProcessorLogEnhance(RgbProcessorArg arg) : base(arg) { }
public RgbProcessorReversalColor(RgbProcessorArg arg) : base(arg) { Init(); }
public RgbProcessorWeightedAveFilter(RgbProcessorArg arg) : base(arg) { }
public HisEqualizing(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public RgbProcessorAverageFilter(string name, RgbProcessorArg arg) : base(name, arg) { }
public BrightContrastProcessor(RgbProcessorArg arg) : base(arg) { Init(); }
public BrightContrastProcessor(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public NSMCExpEnhanceProcessor(RgbProcessorArg arg) : base(arg) { _name = "NSMC指数增强"; }
public NSMCExpEnhanceProcessor(string name, RgbProcessorArg arg) : base(name, arg) { _name = "NSMC指数增强"; }
public EdgeEnhance(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public EdgeEnhance(RgbProcessorArg arg) : base(arg) { Init(); }
void RerenderBitmap(object sender, RgbProcessorArg arg) { Invalidate(); }
public EliminationColorProcessor(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public RgbProcessorSelectableColor(RgbProcessorArg arg) : base(arg) { Init(); }
public HisEqualizing(RgbProcessorArg arg) : base(arg) { Init(); }
public RgbProcessorSelectableColor(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public RgbProcessorAverageFilter(RgbProcessorArg arg) : base(arg) { }
public LevelColorProcessor(RgbProcessorArg arg) : base(arg) { Init(); }
public RgbProcessorReplacedColor(RgbProcessorArg arg) : base(arg) { Init(); }
public LevelColorProcessor(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public RgbProcessorReversalColor(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public HueSaturationProcess(RgbProcessorArg arg) : base(arg) { Init(); }
public RgbProcessorWeightedAveFilter(string name, RgbProcessorArg arg) : base(name, arg) { }
public HueSaturationProcess(string name, RgbProcessorArg arg) : base(name, arg) { Init(); }
public ExponentEnhanceProcessor(string name, RgbProcessorArg arg) : base(name, arg) { }
public EliminationColorProcessor(RgbProcessorArg arg) : base(arg) { Init(); }
public RgbProcessorLogEnhance(string name, RgbProcessorArg arg) : base(name, arg) { }
public RgbProcessorMiddleFilter(string name, RgbProcessorArg arg) : base(name, arg) { }