protected override void createProperties() { base.createProperties(); setExtra(inSpace.ToString() + " to " + outSpace.ToString()); //Will need to choose input color space //and output color space. Property p = new PropertySelection(options, (int)inSpace, "input color space"); p.eValueChanged += P_eValueChanged; properties["inSpace"] = p; p = new PropertySelection(options, (int)outSpace, "output color space"); p.eValueChanged += P_eValueChanged; properties["outSpace"] = p; }
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)); }
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; }