本文介绍了如何绘制以厘米和英寸为单位的条形码c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<pre lang="cs">public void drawbarcode() { try { string Fontname = comboBox1.Text; String degree = comboBox4.Text; BaseBarcode b = BarcodeFactory.GetBarcode(GetEnum(Fontname)); b.ChecksumAdd = checkBox1.Checked; b.ChecksumVisible = checkBox2.Checked; b.Number = textBox1.Text; b.Rotation = GetEnumdegree(degree); pictureBox1.Image = b.Render(); panel1.Controls.Add(pictureBox1); panel2.Controls.Remove(label25); }
解决方案
<pre lang="cs">public void drawbarcode() { try { string Fontname = comboBox1.Text; String degree = comboBox4.Text; BaseBarcode b = BarcodeFactory.GetBarcode(GetEnum(Fontname)); b.ChecksumAdd = checkBox1.Checked; b.ChecksumVisible = checkBox2.Checked; b.Number = textBox1.Text; b.Rotation = GetEnumdegree(degree); pictureBox1.Image = b.Render(); panel1.Controls.Add(pictureBox1); panel2.Controls.Remove(label25); }
解决方案
这篇关于如何绘制以厘米和英寸为单位的条形码c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!