Esempio n. 1
0
        protected override void createProperties() {
            base.createProperties();

            Property p = new PropertyString("", "Image path to save");
            p.eValueChanged += pathChanged;
            properties.Add("path", p);

            p = new PropertyButton("Read", "open image from file");
            p.eValueChanged += open;
            properties.Add("save", p);

            properties.Add("outChannels1", new PropertyChannels(false, true));
            properties.Add("outVectors2", new PropertyVectors(false, true));
            properties.Add("outChannels2", new PropertyChannels(false, true));
        }
Esempio n. 2
0
        protected override void createProperties() {
            base.createProperties();

            Property p = new PropertyFloat(ratio, 0.0f, 1.0f, "Mix ratio");
            p.eValueChanged += e_RatioChanged;
            properties["mixRatio"] = p;

            p = new PropertyButton("Swap", "Swap inputs A and B");
            p.eValueChanged += e_SwapInputs;
            properties["btnSwap"] = p;

            properties.Add("inColorA", new PropertyColor(true, false));
            properties.Add("inColorB", new PropertyColor(true, false));
            properties.Add("outColor", new PropertyColor(false, true));
        }
Esempio n. 3
0
        protected override void createProperties() {
            base.createProperties();

            Property p = new PropertySelection(options, (int)method, "merge operator");
            p.eValueChanged += e_OpChanged;
            properties["mergeMethod"] = p;

            p = new PropertyButton("Swap", "Swap inputs A and B");
            p.eValueChanged += e_SwapInputs;
            properties["btnSwap"] = p;

            properties.Add("inColorA", new PropertyColor(true, false));
            properties.Add("inColorB", new PropertyColor(true, false));
            properties.Add("outColor", new PropertyColor(false, true));
        }
Esempio n. 4
0
        protected override void createProperties() {
            base.createProperties();

            //create filepath property
            Property p = new PropertyString("", "Image path to save");
            p.eValueChanged += pathChanged;
            properties.Add("path", p);

            p = new PropertyButton("Save", "save image to file");
            p.eValueChanged += save;
            properties.Add("save", p);

            p = new PropertyButton("Check", "check file stats");
            p.eValueChanged += check;
            properties.Add("check", p);

            properties.Add("inChannels", new PropertyChannels(true, false));
        }
Esempio n. 5
0
        protected override void createProperties() {
            base.createProperties();

            //create filepath property
            Property p = new PropertyString("", "Image path to save");
            p.eValueChanged += pathChanged;
            properties.Add("path", p);

            p = new PropertyButton("open", "load channels from file");
            p.eValueChanged += open;
            properties.Add("open", p);

            p = new PropertyButton("info", "stats on the file read");
            p.eValueChanged += (a, b) => { check();  };
            properties.Add("info", p);

            properties.Add("outChannels", new PropertyChannels(false, true));
        }