Example #1
0
        public ColorConvDlg(SapColorConversion pColorConv, SapTransfer pXfer, ImageBox pImageWnd, SapProcessing pPro)
        {
            InitializeComponent();

            m_pColorConv = pColorConv;
            m_pXfer      = pXfer;
            m_pPro       = pPro;
            m_pImageWnd  = pImageWnd;

            m_MethodDict = new Dictionary <SapColorConversion.ColorMethod, string>();
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method1, "Bayer Method 1");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method2, "Bayer Method 2");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method3, "Bayer Method 3");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method4, "Bayer Method 4");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method5, "Bayer Method 5");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method6, "Bi-Color Method 6 (compatible with Basler Sprint)");
            m_MethodDict.Add(SapColorConversion.ColorMethod.Method7, "Bi-Color Method 7 (compatible with TDALSA P4)");
        }