コード例 #1
0
ファイル: DCT.cs プロジェクト: JoePelz/NodeShop
        protected override void createProperties() {
            base.createProperties();

            Property p = new PropertyCheckbox("Inverse");
            p.eValueChanged += P_eValueChanged; ;
            properties["isInverse"] = p;

            p = new PropertyInt(50, 10, 100, "Quantization quality (%)");
            p.eValueChanged += (prop, b) => { soil(); };
            properties["quality"] = p;
        }
コード例 #2
0
ファイル: Subsample.cs プロジェクト: JoePelz/NodeShop
        protected override void createProperties() {
            base.createProperties();
            
            //Will need to choose output sample space.
            Property p = new PropertySelection(options, (int)outSamples, "output sample space");
            p.eValueChanged += P_eValueChanged;
            properties["outSamples"] = p;

            //To pad or not to pad?
            p = new PropertyCheckbox("pad the channels to\na multiple of 8?");
            p.eValueChanged += e_padded;
            properties["padded"] = p;
        }