public static byte[] GetBarsInter25(string text) {
text = KeepNumbers(text);
if ((text.Length & 1) != 0)
throw new ArgumentException("The text length must be even.");
byte[] bars = new byte[text.Length * 5 + 7];
int pb = 0;
bars[pb++] = 0;
bars[pb++] = 0;
bars[pb++] = 0;
bars[pb++] = 0;
int len = text.Length / 2;
for (int k = 0; k < len; ++k) {
int c1 = text[k * 2] - '0';
int c2 = text[k * 2 + 1] - '0';
byte[] b1 = BARS[c1];
byte[] b2 = BARS[c2];
for (int j = 0; j < 5; ++j) {
bars[pb++] = b1[j];
bars[pb++] = b2[j];
}
}
bars[pb++] = 1;
bars[pb++] = 0;
bars[pb++] = 0;
return bars;
}