Пример #1
0
        internal void ChromaKey()
        {
            if (m_frmMain.rbDoSingle.Checked)
            {
                bmpOutput = m_Controller.Chromakey(m_frmMain.uiChromaKey.BackgroundImage, bmpOutput, m_frmMain.uiChromaKey.Sensitivity);
            }
            else if (m_frmMain.rbAddToAuto.Checked)
            {
                List <object> ArgList = new List <object>();
                ArgList.Add(m_frmMain.uiChromaKey.BackgroundImage);
                ArgList.Add(bmpOutput);
                ArgList.Add(m_frmMain.uiChromaKey.Sensitivity);

                m_Controller.Automation_AddOperation(Constants.Operations.ChromaKey, ArgList);
            }
            else if (m_frmMain.rbBatch.Checked)
            {
                List <object> ArgList = new List <object>();
                ArgList.Add(m_frmMain.uiChromaKey.BackgroundImage);
                ArgList.Add(bmpOutput);
                ArgList.Add(m_frmMain.uiChromaKey.Sensitivity);

                m_Controller.BatchOp(Constants.Operations.ChromaKey, ArgList);
            }
        }
Пример #2
0
        internal void ChromaKey()
        {
            if (!m_bAutoMode)
            {
                bmpOutput = m_Controller.Chromakey(m_frmMain.ckMain.BackgroundImage, bmpOutput, m_frmMain.ckMain.Sensitivity);
                m_frmMain.tlImageHistory.AddElement(new Bitmap(1, 1), "Chromakey");
            }
            else if (m_bAutoMode)
            {
                List <object> ArgList = new List <object>();
                ArgList.Add(m_frmMain.ckMain.BackgroundImage);
                ArgList.Add(bmpOutput);
                ArgList.Add(m_frmMain.ckMain.Sensitivity);

                m_Controller.Automation_AddOperation(Constants.Operations.ChromaKey, ArgList);

                m_frmMain.tlAutomationActions.AddElement(new Bitmap(1, 1), "Chromakey");
            }
        }