示例#1
0
 public FormQRCodeParam(TDCodeParam _data)
 {
     InitializeComponent();
     this.cmB_ModulGapRowMax.DataSource = System.Enum.GetNames(typeof(enumNoSmallBig));
     this.cmB_ModulGapRowMin.DataSource = System.Enum.GetNames(typeof(enumNoSmallBig));
     this.cmB_ModulGapColMax.DataSource = System.Enum.GetNames(typeof(enumNoSmallBig));
     this.cmB_ModulGapColMin.DataSource = System.Enum.GetNames(typeof(enumNoSmallBig));
     this.cmB_Robustness.DataSource     = System.Enum.GetNames(typeof(enumnoyes));
     this.cmB_Mirrored.DataSource       = System.Enum.GetNames(typeof(enumMirrored));
     this.cmB_StrictQuitZone.DataSource = System.Enum.GetNames(typeof(enumnoyes));
     this.cmB_Polarity.DataSource       = System.Enum.GetNames(typeof(enumPolarity));
     this.cmB_DecodeHance.DataSource    = System.Enum.GetNames(typeof(enumDecodeHance));
     qRCodeParam = (QRCodeParam)_data.Clone();
     Init();
 }
示例#2
0
 public FormDMCodeParam(TDCodeParam _data)
 {
     InitializeComponent();
     this.cmB_ModulGapRowMax.DataSource       = System.Enum.GetValues(typeof(enumNoSmallBig));
     this.cmB_ModulGapRowMin.DataSource       = System.Enum.GetValues(typeof(enumNoSmallBig));
     this.cmB_ModulGapColMax.DataSource       = System.Enum.GetValues(typeof(enumNoSmallBig));
     this.cmB_ModulGapColMin.DataSource       = System.Enum.GetValues(typeof(enumNoSmallBig));
     this.cmB_Robustness.DataSource           = System.Enum.GetValues(typeof(enumLowHigh));
     this.cmB_Mirrored.DataSource             = System.Enum.GetValues(typeof(enumMirrored));
     this.cmB_FindPatternTolerance.DataSource = System.Enum.GetValues(typeof(enumPatternTolerance));
     this.cmB_StrictQuitZone.DataSource       = System.Enum.GetValues(typeof(enumnoyes));
     this.cmB_Polarity.DataSource             = System.Enum.GetValues(typeof(enumPolarity));
     this.cmB_DecodeHance.DataSource          = System.Enum.GetValues(typeof(enumDecodeHance));
     dMCodeParam = (DMCodeParam)_data.Clone();
     Init();
 }
示例#3
0
文件: 2DCode.cs 项目: MarkDDi/Frame
        public override void SetCodeParam(TDCodeParam dataparam)
        {
            QRCodeParam data = (QRCodeParam)dataparam;

            HOperatorSet.SetDataCode2dParam(m_codehandle, "default_parameters", data.DecodeHance.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "contrast_min", data.ContrastMin);
            HOperatorSet.SetDataCode2dParam(m_codehandle, "strict_quiet_zone", data.StrictQuietZone.ToString());

            HOperatorSet.SetDataCode2dParam(m_codehandle, "polarity", data.Polarity.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "mirrored", data.Mirrored.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "small_modules_robustness", data.SmallModulesRobustness.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "version_min", data.VersionMin);
            HOperatorSet.SetDataCode2dParam(m_codehandle, "version_max", data.VersionMax);
            HOperatorSet.SetDataCode2dParam(m_codehandle, "symbol_size_min", data.SymbolSizeMin);
            HOperatorSet.SetDataCode2dParam(m_codehandle, "symbol_size_max", data.SymbolSizeMax);

            HOperatorSet.SetDataCode2dParam(m_codehandle, "module_gap_col_min", data.ModuleGapColMin.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "module_gap_col_max", data.ModuleGapColMax.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "module_gap_row_min", data.ModuleGapRowMin.ToString());
            HOperatorSet.SetDataCode2dParam(m_codehandle, "module_gap_row_max", data.ModuleGapRowMax.ToString());
        }
示例#4
0
文件: 2DCode.cs 项目: MarkDDi/Frame
 public virtual void SetCodeParam(TDCodeParam dataparam)
 {
 }