iTextSharp.text.pdf.qrcode.MatrixUtil.EmbedVerticalSeparationPattern C# (CSharp) Метод

EmbedVerticalSeparationPattern() приватный статический Метод

private static EmbedVerticalSeparationPattern ( int xStart, int yStart, ByteMatrix matrix ) : void
xStart int
yStart int
matrix ByteMatrix
Результат void
        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]);
            }
        }