コード例 #1
0
        /// <summary>
        /// 設定の保存
        /// </summary>
        public void SaveParam()
        {
            ComImageProcessingType imgProcType = (ComImageProcessingType)cmbBoxImageProcessingType.SelectedItem;

            Properties.Settings.Default.ImgTypeSelectName = imgProcType.Name;
            Properties.Settings.Default.Save();

            return;
        }
コード例 #2
0
        public void ShowSettingImageProcessing()
        {
            SettingImageProcessing win = new SettingImageProcessing();
            bool?dialogResult          = win.ShowDialog();

            if (dialogResult == true)
            {
                ComImageProcessingType imgProcType = (ComImageProcessingType)win.cmbBoxImageProcessingType.SelectedItem;
                m_strCurImgName = imgProcType.Name;
                Title           = "Image Processing ( " + m_strCurImgName + " )";

                canvasBinarization.IsEnabled = m_strCurImgName == ComInfo.IMG_NAME_BINARIZATION ? true : false;

                pictureBoxAfter.Source = null;
                SelectLoadImage(m_strCurImgName);
                if (m_histgram != null && m_histgram.IsOpen == true)
                {
                    OnClickBtnShowHistgram(this, null);
                }
            }

            return;
        }