Пример #1
0
 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();
                 //}
             }
         }
     }
 }
Пример #2
0
 public ExponentEnhanceProcessor(RgbProcessorArg arg)
     : base(arg)
 {
 }
Пример #3
0
 public RgbProcessorLogEnhance(RgbProcessorArg arg)
     : base(arg)
 {
 }
Пример #4
0
 public RgbProcessorReversalColor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
 public RgbProcessorWeightedAveFilter(RgbProcessorArg arg)
     : base(arg)
 {
 }
Пример #6
0
 public HisEqualizing(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #7
0
 public RgbProcessorAverageFilter(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
 }
Пример #8
0
 public BrightContrastProcessor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #9
0
 public BrightContrastProcessor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #10
0
 public NSMCExpEnhanceProcessor(RgbProcessorArg arg)
     : base(arg)
 {
     _name = "NSMC指数增强";
 }
Пример #11
0
 public NSMCExpEnhanceProcessor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     _name = "NSMC指数增强";
 }
Пример #12
0
 public EdgeEnhance(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #13
0
 public EdgeEnhance(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #14
0
 void RerenderBitmap(object sender, RgbProcessorArg arg)
 {
     Invalidate();
 }
Пример #15
0
 public EliminationColorProcessor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #16
0
 public RgbProcessorSelectableColor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #17
0
 public HisEqualizing(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #18
0
 public RgbProcessorSelectableColor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #19
0
 public RgbProcessorAverageFilter(RgbProcessorArg arg)
     : base(arg)
 {
 }
Пример #20
0
 public LevelColorProcessor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #21
0
 public RgbProcessorReplacedColor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #22
0
 public LevelColorProcessor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #23
0
 public RgbProcessorReversalColor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #24
0
 public HueSaturationProcess(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
 public RgbProcessorWeightedAveFilter(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
 }
Пример #26
0
 public HueSaturationProcess(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
     Init();
 }
Пример #27
0
 public ExponentEnhanceProcessor(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
 }
Пример #28
0
 public EliminationColorProcessor(RgbProcessorArg arg)
     : base(arg)
 {
     Init();
 }
Пример #29
0
 public RgbProcessorLogEnhance(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
 }
Пример #30
0
 public RgbProcessorMiddleFilter(string name, RgbProcessorArg arg)
     : base(name, arg)
 {
 }