public ImageVideoForm(RendererForm referer, AVConnection c)
        {
            Connection = c;
            Parent = referer;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            this.Text = "Image/Video Controls  [" + c.ID.ToString() + "]";
            RedBlack.Value = (int)c.RedVideoBlackLevel;
            RedGain.Value = (int)c.RedVideoGain;
            GreenBlack.Value = (int)c.GreenVideoBlackLevel;
            GreenGain.Value = (int)c.GreenVideoGain;
            BlueBlack.Value = (int)c.BlueVideoBlackLevel;
            BlueGain.Value = (int)c.BlueVideoGain;

            c.OnBlueVideoBlackLevelChanged += new AVConnection.VariableChangedHandler(BlueBlackSink);
            c.OnBlueVideoGainChanged += new AVConnection.VariableChangedHandler(BlueGainSink);
            c.OnGreenVideoBlackLevelChanged += new AVConnection.VariableChangedHandler(GreenBlackSink);
            c.OnGreenVideoGainChanged += new AVConnection.VariableChangedHandler(GreenGainSink);
            c.OnRedVideoBlackLevelChanged += new AVConnection.VariableChangedHandler(RedBlackSink);
            c.OnRedVideoGainChanged += new AVConnection.VariableChangedHandler(RedGainSink);

            c.OnSharpnessChanged += new AVConnection.VariableChangedHandler(SharpnessSink);
            c.OnBrightnessChanged += new AVConnection.VariableChangedHandler(BrightnessSink);
            c.OnContrastChanged += new AVConnection.VariableChangedHandler(ContrastSink);
        }
Esempio n. 2
0
 private void FormSink(AVRenderer r, AVConnection c)
 {
     RendererForm f = new RendererForm(c);
     ConnectionTable[c] = f;
     f.Show();
 }