日期:2014-05-17 浏览次数:20880 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Me.BarcodeSoftware.Barcode
{
public class Code39
{
//w - wide
//t - thin
//Start the drawing with black, white, black, white......
public string encode(string data, int chk)
{
string fontOutput = mcode(data, chk);
string output = "";
string pattern = "";
for (int x = 0; x < fontOutput.Length; x++)
{
switch (fontOutput[x])
{
case '1':
pattern = "wttwttttwt";
break;
case '2':
pattern = "ttwwttttwt";
break;
case '3':
pattern = "wtwwtttttt";
break;
case '4':
pattern = "tttwwtttwt";
break;
case&