private static void EmbedVerticalSeparationPattern(int xStart, int yStart,
ByteMatrix matrix) {
// We know the width and height.
if (VERTICAL_SEPARATION_PATTERN[0].Length != 1 || VERTICAL_SEPARATION_PATTERN.GetLength(0) != 7) {
throw new WriterException("Bad vertical separation pattern");
}
for (int y = 0; y < 7; ++y) {
if (!IsEmpty(matrix.Get(xStart, yStart + y))) {
throw new WriterException();
}
matrix.Set(xStart, yStart + y, VERTICAL_SEPARATION_PATTERN[y][0]);
}
}