当前位置: 首页 > news >正文

12306的网站建设信誉好的网站建设

12306的网站建设,信誉好的网站建设,app大全软件网站,wap网站开发平台介绍该库旨在为开发人员提供一个简单的类#xff0c;以便他们在需要根据数据字符串生成条形码图像时使用。用法该库包含一个名为BarcodeLib的类#xff0c;其中包含三个构造函数#xff1a;Barcode(); Barcode(string); Barcode(string, BarcodeLib.TYPE);如果决定使用参数创… 介绍该库旨在为开发人员提供一个简单的类以便他们在需要根据数据字符串生成条形码图像时使用。用法该库包含一个名为BarcodeLib的类其中包含三个构造函数Barcode(); Barcode(string); Barcode(string, BarcodeLib.TYPE); 如果决定使用参数创建实例则参数如下字符串是要编码到条形码中的数据而BarcodeLib.TYPE是用于编码数据的符号体系。如果在创建实例时未选择指定数据和类型则可以稍后但在编码之前通过适当的属性指定它们。BarcodeLib.Barcode b new BarcodeLib.Barcode(); Image img b.Encode(BarcodeLib.TYPE.UPCA, 038000356216, Color.Black, Color.White, 290, 120);private void btnEncode_Click(object sender, EventArgs e){errorProvider1.Clear();int W Convert.ToInt32(this.txtWidth.Text.Trim());int H Convert.ToInt32(this.txtHeight.Text.Trim());b.Alignment AlignmentPositions.CENTER;//barcode alignmentswitch (cbBarcodeAlign.SelectedItem.ToString().Trim().ToLower()){case left: b.Alignment AlignmentPositions.LEFT; break;case right: b.Alignment AlignmentPositions.RIGHT; break;default: b.Alignment AlignmentPositions.CENTER; break;}//switchTYPE type TYPE.UNSPECIFIED;switch (cbEncodeType.SelectedItem.ToString().Trim()){case UPC-A: type TYPE.UPCA; break;case UPC-E: type TYPE.UPCE; break;case UPC 2 Digit Ext.: type TYPE.UPC_SUPPLEMENTAL_2DIGIT; break;case UPC 5 Digit Ext.: type TYPE.UPC_SUPPLEMENTAL_5DIGIT; break;case EAN-13: type TYPE.EAN13; break;case JAN-13: type TYPE.JAN13; break;case EAN-8: type TYPE.EAN8; break;case ITF-14: type TYPE.ITF14; break;case Codabar: type TYPE.Codabar; break;case PostNet: type TYPE.PostNet; break;case Bookland/ISBN: type TYPE.BOOKLAND; break;case Code 11: type TYPE.CODE11; break;case Code 39: type TYPE.CODE39; break;case Code 39 Extended: type TYPE.CODE39Extended; break;case Code 39 Mod 43: type TYPE.CODE39_Mod43; break;case Code 93: type TYPE.CODE93; break;case LOGMARS: type TYPE.LOGMARS; break;case MSI: type TYPE.MSI_Mod10; break;case Interleaved 2 of 5: type TYPE.Interleaved2of5; break;case Interleaved 2 of 5 Mod 10: type TYPE.Interleaved2of5_Mod10; break;case Standard 2 of 5: type TYPE.Standard2of5; break;case Standard 2 of 5 Mod 10: type TYPE.Standard2of5_Mod10; break;case Code 128: type TYPE.CODE128; break;case Code 128-A: type TYPE.CODE128A; break;case Code 128-B: type TYPE.CODE128B; break;case Code 128-C: type TYPE.CODE128C; break;case Telepen: type TYPE.TELEPEN; break;case FIM: type TYPE.FIM; break;case Pharmacode: type TYPE.PHARMACODE; break;default: MessageBox.Show(Please specify the encoding type.); break;}//switchtry{if (type ! TYPE.UNSPECIFIED){try{b.BarWidth textBoxBarWidth.Text.Trim().Length 1 ? null : (int?)Convert.ToInt32(textBoxBarWidth.Text.Trim());}catch (Exception ex){throw new Exception(Unable to parse BarWidth: ex.Message, ex);}try{b.AspectRatio textBoxAspectRatio.Text.Trim().Length 1 ? null : (double?)Convert.ToDouble(textBoxAspectRatio.Text.Trim());}catch (Exception ex){throw new Exception(Unable to parse AspectRatio: ex.Message, ex);}b.IncludeLabel this.chkGenerateLabel.Checked;b.RotateFlipType (RotateFlipType)Enum.Parse(typeof(RotateFlipType), this.cbRotateFlip.SelectedItem.ToString(), true);if (!String.IsNullOrEmpty(this.textBox1.Text.Trim()))b.AlternateLabel this.textBox1.Text;elseb.AlternateLabel this.txtData.Text;//label alignment and positionswitch (this.cbLabelLocation.SelectedItem.ToString().Trim().ToUpper()){case BOTTOMLEFT: b.LabelPosition LabelPositions.BOTTOMLEFT; break;case BOTTOMRIGHT: b.LabelPosition LabelPositions.BOTTOMRIGHT; break;case TOPCENTER: b.LabelPosition LabelPositions.TOPCENTER; break;case TOPLEFT: b.LabelPosition LabelPositions.TOPLEFT; break;case TOPRIGHT: b.LabelPosition LabelPositions.TOPRIGHT; break;default: b.LabelPosition LabelPositions.BOTTOMCENTER; break;}//switch// Encoding performed here barcode.BackgroundImage b.Encode(type, this.txtData.Text.Trim(), this.btnForeColor.BackColor, this.btnBackColor.BackColor, W, H);////show the encoding timethis.lblEncodingTime.Text ( Math.Round(b.EncodingTime, 0, MidpointRounding.AwayFromZero).ToString() ms);txtEncoded.Text b.EncodedValue;tsslEncodedType.Text Encoding Type: b.EncodedType.ToString();// Read dynamically calculated Width/Height because the user is interested.if (b.BarWidth.HasValue)txtWidth.Text b.Width.ToString();if (b.AspectRatio.HasValue)txtHeight.Text b.Height.ToString();}//if//reposition the barcode image to the middlebarcode.Location new Point((this.barcode.Location.X this.barcode.Width / 2) - barcode.Width / 2, (this.barcode.Location.Y this.barcode.Height / 2) - barcode.Height / 2);}//trycatch (Exception ex){MessageBox.Show(ex.Message);}//catch}//btnEncode_Click 版权和许可 Apache-2.0 License开源地址https://github.com/barnhill/barcodelib
http://www.yutouwan.com/news/79518/

相关文章:

  • 初中毕业学网站开发工程师中山有网站建设公司吗
  • asp.net jsp 网站wordpress同类
  • 重庆网站制作权威乐云践新网站的工商网监怎么做进去
  • 网站登录界面模板下载免费缩短网址
  • 怎么建立网站站点wordpress如何添加模板
  • 公司后台网站怎么做郑州建设网站费用
  • 培训网站建设课程网站项目建设所需成本
  • 手机制作网站app江苏省网站备案电话号码
  • 林芝网站建设wordpress底部添加电话图标
  • 常德市住房和城乡建设局网站1688外贸网站
  • 那个网站的详情做的好知名企业有哪些
  • 商务网站建设有哪几个步骤wordpress 数据库 类型
  • 商标设计网站猪八戒做网站要求的分辨率是什么意思
  • 长沙哪里有做网站的公司自己给别人做网站挣钱吗
  • 大连网站推广深圳专业做网站
  • 定制东莞网站制作公司如何做网站优化关键词优化
  • 网站建设及维护干什么的wordpress站群是什么
  • 广州做网站信息设计店名logo
  • 商业网站设计与制作论文外包加工项目
  • wordpress 网站工具栏电商平台的营销方式
  • 从建站到网络优化杭州电子网站建设方案
  • 漯河市源汇区建设局网站微动漫怎么制作
  • 网站开发证书要求兰州网站建设优化
  • 无锡商城网站建设wordpress设置密码访问带提示
  • 如何防止网站被注入黑链wordpress页面相册
  • 阿里巴巴网站备案号seo网站查询工具
  • 网站创建一般创建哪种类型做微商哪个网站比较好
  • 济南专业做网站的公司wordpress 怎么安全
  • 室内设计平面图怎么画镇江整站优化
  • wordpress插件写在模板里德兴网站seo