public static byte[] GetBarsCode128Raw(string text) {
int k;
int idx = text.IndexOf('\uffff');
if (idx >= 0)
text = text.Substring(0, idx);
int chk = text[0];
for (k = 1; k < text.Length; ++k)
chk += k * text[k];
chk = chk % 103;
text += (char)chk;
byte[] bars = new byte[(text.Length + 1) * 6 + 7];
for (k = 0; k < text.Length; ++k)
Array.Copy(BARS[text[k]], 0, bars, k * 6, 6);
Array.Copy(BARS_STOP, 0, bars, k * 6, 7);
return bars;
}