示例#1
0
 public void New()
 {
     string name = "name";
       var procedure = new Procedure(name, "blurb", "help",
             "author", "copyright",
             "date", "menu_path",
             "RGB", null, null);
       Assert.AreEqual(name, procedure.Name);
 }
示例#2
0
        protected Procedure FileLoadProcedure(string name, string blurb, 
            string help, string author,
            string copyright, string date,
            string menu_path)
        {
            var inParams = new ParamDefList(true) {
            new ParamDef("run_mode", typeof(Int32),
             "Interactive, non-interactive"),
            new ParamDef("filename", typeof(FileName),
             "The name of the file to load"),
            new ParamDef("raw_filename", typeof(FileName),
             "The name entered")};

              var outParams = new ParamDefList(true) {
            new ParamDef("image", typeof(Image), "Output image")};

              _loadProcedure = new Procedure(name, blurb, help, author, copyright,
                     date, menu_path, null,
                     inParams, outParams);

              return _loadProcedure;
        }
示例#3
0
        protected Procedure FileSaveProcedure(string name, string blurb, 
            string help, string author,
            string copyright, string date,
            string menu_path,
            string image_types)
        {
            var inParams = new ParamDefList(true) {
            new ParamDef("run_mode", typeof(Int32),
             "Interactive, non-interactive"),
            new ParamDef("image", typeof(Image),
             "Input image"),
            new ParamDef("drawable", typeof(Drawable),
             "Drawable to save"),
            new ParamDef("filename", typeof(FileName),
             "The name of the file to save the image in"),
            new ParamDef("raw_filename", typeof(FileName),
             "The name of the file to save the image in")};

              _saveProcedure = new Procedure(name, blurb, help, author, copyright,
                     date, menu_path, image_types, inParams);

              return _saveProcedure;
        }
示例#4
0
 public void Run()
 {
     var procedure = new Procedure("plug_in_pixelize");
       // procedure.Run(image, drawable, 10);
 }
 public void Add(Procedure procedure)
 {
     _set[procedure.Name] = procedure;
 }
示例#6
0
 public void Add(Procedure procedure)
 {
     _set[procedure.Name] = procedure;
 }
示例#7
0
 public void TestNCP()
 {
     var procedure = new Procedure("plug_in_ncp");
       procedure.Run(_image, _drawable, 12, 2, true);
 }
示例#8
0
 public void TestMinisteck()
 {
     var procedure = new Procedure("plug_in_ministeck");
       procedure.Run(_image, _drawable, true, 16, new RGB(0, 255, 0));
 }