示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Code128 _Code = new Code128();

            _Code.ValueFont = new Font("宋体", 9);
            _Code.Height    = 50;
            System.Drawing.Bitmap imgTemp = _Code.GetCodeImage("12345678945645", Code128.Encode.EAN128, "ceshi ", "ceshi ");
            string path = System.AppDomain.CurrentDomain.BaseDirectory + "\\" + "BarCode.gif";

            imgTemp.Save(path, System.Drawing.Imaging.ImageFormat.Gif);
            _Code.Code128Path.Add(path);
            _Code.Code128Path.Add(path);
            _Code.Code128Path.Add(path);
            _Code.BarCodeShow();
        }