如何绘制以厘米和英寸为单位的条形码c# [英] how can draw scale in cm and inches for barcode c#

查看:162
本文介绍了如何绘制以厘米和英寸为单位的条形码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);



           }




解决方案

您实际上不能.我不知道该代码段应该告诉我们什么,但是C#无法告诉您显示器的尺寸,因此它无法计算出如何在屏幕上绘制1厘米或1英寸的东西.

只需查看链接即可.下载exe并运行.在软件底部有scale.just,就像我要制作的一样,也想在上方和下方写入文字
链接是
http://barcodesoftwaretool.com/downloads.htm [




解决方案

You actually can''t. I have no idea what this code snippet is supposed to tell us, but C# can''t tell what size your monitor is, therefore it cannot work out how to draw something to be 1 cm or 1 inch on the screen.


just see the link .download the exe and run .in the bottom of the software there is scale.just like that i want to make and also want to write text above and below
the link is
http://barcodesoftwaretool.com/downloads.htm[^]


这篇关于如何绘制以厘米和英寸为单位的条形码c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆